This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/16416] New: [3.4/3.5 regression] -m64 doesn't imply -mcpu=v9 anymore
- From: "ebotcazou at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Jul 2004 22:28:41 -0000
- Subject: [Bug target/16416] New: [3.4/3.5 regression] -m64 doesn't imply -mcpu=v9 anymore
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
On the 3.3 branch:
[eric@localhost obj.sparc]$ gcc/xgcc -Bgcc -S -### t.c -m64
Reading specs from gcc/specs
Configured with: ../configure --host=i586-redhat-linux-gnu
--target=sparc-sun-solaris2.8 --prefix=/usr/local
--enable-checking=misc,tree,rtlflag --enable-languages=c,c++
Thread model: posix
gcc version 3.3.5 20040703 (prerelease)
"gcc/cc1" "-quiet" "-iprefix"
"/home/eric/cvs/gcc-3_3-branch/obj.sparc/gcc/../lib/gcc-lib/sparc-sun-solaris2.8/3.3.5/"
"-isystem" "gcc/include" "-D__GNUC__=3" "-D__GNUC_MINOR__=3"
"-D__GNUC_PATCHLEVEL__=5" "-Dsparc" "-D__sparc__" "-D__sparc" "-D__arch64__"
"-Acpu=sparc64" "-Amachine=sparcv9" "-D__sparcv9" "t.c" "-mptr64" "-mstack-bias"
"-mno-v8plus" "-mcpu=v9" "-quiet" "-dumpbase" "t.c" "-m64" "-auxbase" "t" "-o" "t.s"
On the 3.4 branch and up:
[eric@localhost obj.sparc]$ gcc/xgcc -Bgcc -S -### t.c -m64
Reading specs from gcc/specs
Configured with: ../configure --host=i586-redhat-linux-gnu
--target=sparc-sun-solaris2.8 --prefix=/usr/local
--enable-checking=misc,tree,rtlflag --enable-languages=c,c++
Thread model: posix
gcc version 3.4.2 20040706 (prerelease)
"gcc/cc1" "-quiet" "-iprefix"
"/home/eric/cvs/gcc-3_4-branch/obj.sparc/gcc/../lib/gcc/sparc-sun-solaris2.8/3.4.2/"
"-isystem" "gcc/include" "-D__arch64__" "-D__sparcv9" "t.c" "-mptr64"
"-mstack-bias" "-mno-v8plus" "-quiet" "-dumpbase" "t.c" "-m64" "-mcpu=v7"
"-auxbase" "t" "-o" "t.s"
which I find stupid.
This comes from the --with-cpu mechanism at configure time, which defaults to v7
on sparc-*-*, so the driver behaves as if -mcpu=v7 were passed.
--
Summary: [3.4/3.5 regression] -m64 doesn't imply -mcpu=v9 anymore
Product: gcc
Version: 3.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: target
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: ebotcazou at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: sparc-sun-solaris2.[789]
GCC host triplet: sparc-sun-solaris2.[789]
GCC target triplet: sparc-sun-solaris2.[789]
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16416