This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Problem with -mcpu option for GAS on Linux/Alpha
- From: Sergey Tikhonov <tsv at solvo dot ru>
- To: binutils at sourceware dot org
- Date: Sun, 08 Jan 2006 22:04:35 +0300
- Subject: Problem with -mcpu option for GAS on Linux/Alpha
- Reply-to: tsv at solvo dot ru
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