diff options
Diffstat (limited to 'recipes-devtools/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99374.patch')
| -rw-r--r-- | recipes-devtools/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99374.patch | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/recipes-devtools/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99374.patch b/recipes-devtools/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99374.patch new file mode 100644 index 0000000000..dfe193ff28 --- /dev/null +++ b/recipes-devtools/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99374.patch | |||
| @@ -0,0 +1,72 @@ | |||
| 1 | 2010-08-26 Andrew Stubbs <ams@codesourcery.com> | ||
| 2 | |||
| 3 | Merge from Ubuntu GCC: | ||
| 4 | |||
| 5 | GCC bugzilla PR objc/41848. | ||
| 6 | |||
| 7 | gcc/ | ||
| 8 | * objc/lang-specs.h: Work around ObjC and -fsection-anchors. | ||
| 9 | |||
| 10 | gcc/testsuite/ | ||
| 11 | * objc/execute/forward-1.x: Update for ARM. | ||
| 12 | |||
| 13 | 2010-08-25 Andrew Stubbs <ams@codesourcery.com> | ||
| 14 | |||
| 15 | Backport from FSF: | ||
| 16 | |||
| 17 | === modified file 'gcc/objc/lang-specs.h' | ||
| 18 | --- old/gcc/objc/lang-specs.h 2007-08-02 09:37:36 +0000 | ||
| 19 | +++ new/gcc/objc/lang-specs.h 2010-08-26 14:02:04 +0000 | ||
| 20 | @@ -26,29 +26,33 @@ | ||
| 21 | {"@objective-c", | ||
| 22 | "%{E|M|MM:cc1obj -E %{traditional|ftraditional|traditional-cpp:-traditional-cpp}\ | ||
| 23 | %(cpp_options) %(cpp_debug_options)}\ | ||
| 24 | + %{fsection-anchors: %eGNU Objective C can't use -fsection-anchors} \ | ||
| 25 | %{!E:%{!M:%{!MM:\ | ||
| 26 | %{traditional|ftraditional|traditional-cpp:\ | ||
| 27 | %eGNU Objective C no longer supports traditional compilation}\ | ||
| 28 | %{save-temps|no-integrated-cpp:cc1obj -E %(cpp_options) -o %{save-temps:%b.mi} %{!save-temps:%g.mi} \n\ | ||
| 29 | - cc1obj -fpreprocessed %{save-temps:%b.mi} %{!save-temps:%g.mi} %(cc1_options) %{print-objc-runtime-info} %{gen-decls}}\ | ||
| 30 | + cc1obj -fpreprocessed -fno-section-anchors %{save-temps:%b.mi} %{!save-temps:%g.mi} %(cc1_options) %{print-objc-runtime-info} %{gen-decls}}\ | ||
| 31 | %{!save-temps:%{!no-integrated-cpp:\ | ||
| 32 | - cc1obj %(cpp_unique_options) %(cc1_options) %{print-objc-runtime-info} %{gen-decls}}}\ | ||
| 33 | + cc1obj %(cpp_unique_options) -fno-section-anchors %(cc1_options) %{print-objc-runtime-info} %{gen-decls}}}\ | ||
| 34 | %{!fsyntax-only:%(invoke_as)}}}}", 0, 0, 0}, | ||
| 35 | {".mi", "@objc-cpp-output", 0, 0, 0}, | ||
| 36 | {"@objc-cpp-output", | ||
| 37 | - "%{!M:%{!MM:%{!E:cc1obj -fpreprocessed %i %(cc1_options) %{print-objc-runtime-info} %{gen-decls}\ | ||
| 38 | - %{!fsyntax-only:%(invoke_as)}}}}", 0, 0, 0}, | ||
| 39 | + "%{!M:%{!MM:%{!E:cc1obj -fno-section-anchors -fpreprocessed %i %(cc1_options) %{print-objc-runtime-info} %{gen-decls}\ | ||
| 40 | + %{!fsyntax-only:%(invoke_as)}}}} \ | ||
| 41 | + %{fsection-anchors: %eGNU Objective C can't use -fsection-anchors} ", 0, 0, 0}, | ||
| 42 | {"@objective-c-header", | ||
| 43 | "%{E|M|MM:cc1obj -E %{traditional|ftraditional|traditional-cpp:-traditional-cpp}\ | ||
| 44 | %(cpp_options) %(cpp_debug_options)}\ | ||
| 45 | + %{fsection-anchors: %eGNU Objective C can't use -fsection-anchors} \ | ||
| 46 | %{!E:%{!M:%{!MM:\ | ||
| 47 | %{traditional|ftraditional|traditional-cpp:\ | ||
| 48 | %eGNU Objective C no longer supports traditional compilation}\ | ||
| 49 | %{save-temps|no-integrated-cpp:cc1obj -E %(cpp_options) -o %{save-temps:%b.mi} %{!save-temps:%g.mi} \n\ | ||
| 50 | - cc1obj -fpreprocessed %b.mi %(cc1_options) %{print-objc-runtime-info} %{gen-decls}\ | ||
| 51 | + cc1obj -fpreprocessed %b.mi %(cc1_options) -fno-section-anchors %{print-objc-runtime-info} %{gen-decls}\ | ||
| 52 | -o %g.s %{!o*:--output-pch=%i.gch}\ | ||
| 53 | %W{o*:--output-pch=%*}%V}\ | ||
| 54 | + %{fsection-anchors: %eGNU Objective C can't use -fsection-anchors} \ | ||
| 55 | %{!save-temps:%{!no-integrated-cpp:\ | ||
| 56 | - cc1obj %(cpp_unique_options) %(cc1_options) %{print-objc-runtime-info} %{gen-decls}\ | ||
| 57 | + cc1obj %(cpp_unique_options) -fno-section-anchors %(cc1_options) %{print-objc-runtime-info} %{gen-decls}\ | ||
| 58 | -o %g.s %{!o*:--output-pch=%i.gch}\ | ||
| 59 | %W{o*:--output-pch=%*}%V}}}}}", 0, 0, 0}, | ||
| 60 | |||
| 61 | === modified file 'gcc/testsuite/objc/execute/forward-1.x' | ||
| 62 | --- old/gcc/testsuite/objc/execute/forward-1.x 2010-03-25 22:25:05 +0000 | ||
| 63 | +++ new/gcc/testsuite/objc/execute/forward-1.x 2010-08-26 14:02:04 +0000 | ||
| 64 | @@ -4,6 +4,7 @@ | ||
| 65 | |||
| 66 | if { ([istarget x86_64-*-linux*] && [check_effective_target_lp64] ) | ||
| 67 | || [istarget powerpc*-*-linux*] | ||
| 68 | + || [istarget arm*] | ||
| 69 | || [istarget powerpc*-*-aix*] | ||
| 70 | || [istarget s390*-*-*-linux*] | ||
| 71 | || [istarget sh4-*-linux*] | ||
| 72 | |||
