This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Problem with -mcpu option for GAS on Linux/Alpha


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]