Re: Patch RFA: Fix -fpie -fpic

2012-11-13 Thread Joseph S. Myers
On Tue, 13 Nov 2012, Ian Lance Taylor wrote: > Right now if you run "gcc -fpie -fpic" you get, in effect, "gcc -fpie". > I think you should get "gcc -fpic". In general I think that of the > options -fpic, -fPIC, -fpie, -fPIE, -fno-pic, -fno-PIC, -fno-pie, > -fno-PIE the compiler should act as tho

Re: Patch RFA: Fix -fpie -fpic

2012-11-13 Thread H.J. Lu
On Tue, Nov 13, 2012 at 12:45 PM, Ian Lance Taylor wrote: > Right now if you run "gcc -fpie -fpic" you get, in effect, "gcc -fpie". > I think you should get "gcc -fpic". In general I think that of the > options -fpic, -fPIC, -fpie, -fPIE, -fno-pic, -fno-PIC, -fno-pie, > -fno-PIE the compiler shou

Patch RFA: Fix -fpie -fpic

2012-11-13 Thread Ian Lance Taylor
Right now if you run "gcc -fpie -fpic" you get, in effect, "gcc -fpie". I think you should get "gcc -fpic". In general I think that of the options -fpic, -fPIC, -fpie, -fPIE, -fno-pic, -fno-PIC, -fno-pie, -fno-PIE the compiler should act as though only the last of those options were specified. Th