summaryrefslogtreecommitdiff
path: root/toolchain/gcc/4.2.1/902-avr32-fix-pic-redefinition-warning.patch
diff options
context:
space:
mode:
authorJohn Voltz <john.voltz@gmail.com>2008-03-06 18:52:01 +0000
committerJohn Voltz <john.voltz@gmail.com>2008-03-06 18:52:01 +0000
commit1d161fb4375d90718292602f401d48991cc5686c (patch)
treea04e8f228778f3576ff155298e211a1064532a13 /toolchain/gcc/4.2.1/902-avr32-fix-pic-redefinition-warning.patch
parent3ab16b1fd65533d032008d409e0026fe2be43182 (diff)
toolchain updates
Diffstat (limited to 'toolchain/gcc/4.2.1/902-avr32-fix-pic-redefinition-warning.patch')
-rw-r--r--toolchain/gcc/4.2.1/902-avr32-fix-pic-redefinition-warning.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/toolchain/gcc/4.2.1/902-avr32-fix-pic-redefinition-warning.patch b/toolchain/gcc/4.2.1/902-avr32-fix-pic-redefinition-warning.patch
new file mode 100644
index 000000000..ae9fa5d18
--- /dev/null
+++ b/toolchain/gcc/4.2.1/902-avr32-fix-pic-redefinition-warning.patch
@@ -0,0 +1,16 @@
+Index: gcc/gcc/config/avr32/linux-elf.h
+===================================================================
+--- gcc/gcc/config/avr32/linux-elf.h (revision 31583)
++++ gcc/gcc/config/avr32/linux-elf.h (working copy)
+@@ -122,11 +122,6 @@
+ builtin_define ("__AVR32_HAS_BRANCH_PRED__"); \
+ if (TARGET_FAST_FLOAT) \
+ builtin_define ("__AVR32_FAST_FLOAT__"); \
+- if (flag_pic) \
+- { \
+- builtin_define ("__PIC__"); \
+- builtin_define ("__pic__"); \
+- } \
+ } \
+ while (0)
+