This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC 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]

[Bug target/16109] error: architecture mismatch on "fzero".


------- Additional Comments From jakub at gcc dot gnu dot org  2004-06-21 14:38 -------
I don't think so.  GCC on sparc64-*-linux is supposed to default to
-mcpu=ultrasparc if no -mcpu= is given.

> a.c; gcc34 -m64 -c -O2 a.c -v
Reading specs from /usr/lib/gcc/sparc64-redhat-linux/3.4.0/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--disable-checking --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-languages=c,c++,objc,java,f77
--host=sparc64-redhat-linux --build=sparc64-redhat-linux
--target=sparc64-redhat-linux --with-cpu=v7
Thread model: posix
gcc version 3.4.0 (Red Hat Linux 3.4.0-1.sparc)
 /usr/libexec/gcc/sparc64-redhat-linux/3.4.0/cc1 -quiet -v -D__arch64__ a.c
-mptr64 -mstack-bias -mlong-double-128 -mcpu=ultrasparc -mvis -quiet -dumpbase
a.c -m64 -auxbase a -O2 -version -o /tmp/cctmL5p8.s
ignoring nonexistent directory
"/usr/lib/gcc/sparc64-redhat-linux/3.4.0/../../../../sparc64-redhat-linux/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/include
 /usr/lib/gcc/sparc64-redhat-linux/3.4.0/include
 /usr/include
End of search list.
GNU C version 3.4.0 (Red Hat Linux 3.4.0-1.sparc) (sparc64-redhat-linux)
        compiled by GNU C version 3.4.0 (Red Hat Linux 3.4.0-1.sparc).
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
 as -V -Qy -s -Av9a -64 -no-undeclared-regs -relax -o a.o /tmp/cctmL5p8.s
GNU assembler version 2.15.90.0.3 (sparc-redhat-linux) using BFD version
2.15.90.0.3 20040415

There used to be a bug in this area, but it should be fixed by my:
        * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): If SPARC_BI_ARCH,
        override sparc.h definition.
patch.
asm_cpu_default is supposed to be used, because no -mcpu=* nor one of its
obsolete variants are used.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16109


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