Problem with -mcpu option for GAS on Linux/Alpha

Sergey Tikhonov tsv@solvo.ru
Sun Jan 8 19:04:00 GMT 2006


Hello,

Am I right that ".arch" directive in a .s file has higher priority than 
"-mcpu" command option.
I am geting problems with gcc 4.1 compiler and binutils 2.16.91.0.3 on 
linux/alpha trying to compile linux kernel.
Source file is compiled with "-mcpu=ev5 and "-Wa,-mev6" command line 
options. The source file has inline
assembler that adds some "ev56" instructions (that is why option for 
assembler is added).
Unfortunatelly, gcc 4.1 (gcc version 4.1.0 20051214 (Red Hat 4.1.0-0.8)) 
adds ".arch ev5" into output assembler
file and command line option is overwriten by in-file ".arch" directive.
What should be correct behavior?

Thank you,
Sergey.

tsv@solvo.ru




More information about the Binutils mailing list