clean up patch
[openwrt-10.03/.git] / toolchain / gcc / patches / 4.2.4 / 901-avr32_add_mno-pic.patch
1 Index: gcc-4.2.3/gcc/config/avr32/avr32.opt
2 ===================================================================
3 --- gcc-4.2.3.orig/gcc/config/avr32/avr32.opt   2008-05-21 13:45:54.165287871 +0200
4 +++ gcc-4.2.3/gcc/config/avr32/avr32.opt        2008-05-21 13:45:57.194288771 +0200
5 @@ -71,3 +71,6 @@
6  Target Report Var(avr32_imm_in_const_pool) Init(-1)
7  Put large immediates in constant pool. This is enabled by default for archs with insn-cache.
8  
9 +mno-pic
10 +Target Report RejectNegative Mask(NO_PIC)
11 +Do not generate position-independent code.
12 Index: gcc-4.2.3/gcc/config/avr32/avr32.c
13 ===================================================================
14 --- gcc-4.2.3.orig/gcc/config/avr32/avr32.c     2008-05-21 13:45:54.145288116 +0200
15 +++ gcc-4.2.3/gcc/config/avr32/avr32.c  2008-05-21 13:45:57.202289511 +0200
16 @@ -230,6 +230,9 @@
17            avr32_imm_in_const_pool = 0;
18        }
19      
20 +    if (TARGET_NO_PIC)
21 +      flag_pic = 0;
22 +
23      avr32_add_gc_roots ();
24    }
25