Re: Question on repeating -march flags

2016-01-01 Thread Martin Sebor
On 12/23/2015 05:02 AM, Yuri D'Elia wrote: I couldn't find anything on the matter, but what happens if -march is repeated more than once? I would assume the usual behavior that the last flag "wins". This is correct for all -march= arguments except for native. Some -march= option processing ta

Question on repeating -march flags

2015-12-23 Thread Yuri D'Elia
I couldn't find anything on the matter, but what happens if -march is repeated more than once? I would assume the usual behavior that the last flag "wins". On a haswell host, the following: gcc -march=native -march=opteron or gcc -march=opteron -march=native both emit code which is illegal fo