sparc64: -m64 implies -mlong-double-64

Jan Engelhardt jengelh@medozas.de
Sat Dec 12 00:59:00 GMT 2009


Hi,


I observe that -m64 throws an error on the given configuration:

$ touch x.c
$ gcc -m64 x.c
x.c:1: error: -mlong-double-64 not allowed with -m64
$ gcc -v
Using built-in specs.
Target: sparc64-unknown-linux
Configured with: ../configure --prefix=/usr --infodir=/usr/share/info 
--mandir=/usr/share/man --libdir=/usr/lib64 --libexecdir=/usr/lib64 
--enable-languages=c,c++,objc,fortran,obj-c++ --enable-checking=release 
--with-gxx-include-dir=/usr/include/c++/4.4 --enable-ssp 
--disable-libssp --disable-libgcj --disable-libmudflap 
--with-slibdir=/lib64 --with-system-zlib --enable-__cxa_atexit 
--enable-libstdcxx-allocator=new --disable-libstdcxx-pch 
--enable-version-specific-runtime-libs --program-suffix=-4.4 
--enable-linux-futex --without-system-libunwind --with-cpu=ultrasparc 
--with-long-double-128 --build=sparc64-unknown-linux
Thread model: posix
gcc version 4.4.1 [gcc-4_4-branch revision 150839]

Not specifying -m64 at all, also producing a 64-bit object (by virtue
of --with-cpu=ultrasparc I suppose) has no problem:

$ gcc -c x.c
$ file x.o
x.o: ELF 64-bit MSB relocatable, SPARC V9, relaxed memory ordering, 
version 1 (SYSV), not stripped

How can I resolve the error?


thanks,
Jan



More information about the Gcc-help mailing list