This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/16109] error: architecture mismatch on "fzero".
- From: "jakub at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Jul 2004 18:27:45 -0000
- Subject: [Bug target/16109] error: architecture mismatch on "fzero".
- References: <20040621084809.16109.pluto@pld-linux.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From jakub at gcc dot gnu dot org 2004-07-08 18:27 -------
If the compiler is configured with --with-cpu=v7, then it defaults to -m32.
#define OPTION_DEFAULT_SPECS \
{"cpu", "%{!m64:%{!mcpu=*:-mcpu=%(VALUE)}}" }, \
...
means that -mcpu=v7 will be passed if no -mcpu is given AND -m64 is not present
on the command line. If -m64 is present and -mcpu is not given, CC1_SPEC
will add -mcpu=ultrasparc.
Similarly for a compiler defaulting to -m64.
BTW, the compiler is misconfigured, it ought to use --libdir /usr/lib on sparc64,
not /usr/lib64.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16109