This is the mail archive of the gcc-help@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]

how should I configure gcc using "-mips32r2 -mfp64" on mips32r2 archs?


Hi all,
When I cross building gcc for mips32r2 archs using configuration
option "--with-float=hard",
gcc compiles crtbegin/crtend/libgcc by default "-msingle-float".
But when building shared object with options "-mips32r2 -mfp64",the
cross-ld complains
"warning xxxx.so uses -msingle-float, yyyy.o uses -mips32r2 -mfp64",
Since the difference between crtbeginS.o and yyy.o.

So How should I configure gcc to overcome this?

BTW, my configuration command line is,
../../src/configure
--build=i686-pc-linux
--host=i686-pc-linux
--target=mipsel-linux-gnu
--prefix=...
--with-sysroot=...
--with-arch=mips32r2
--disable-libmudflap
--disable-libssp
--disable-libstdcxx-pch
--disable-nls
--disable-libgomp
--enable-threads
--enable-mips-nonpic
--enable-shared
--enable-poison-system-directories
--enable-languages=c,c++
--with-float=hard
--with-host-libstdcxx='-static-libgcc -Wl,-Bstatic,-lstdc++,-Bdynamic -lm'
--with-cloog=...   --with-ppl=...  --with-gmp=... --with-mpfr=...


Thanks very much

-- 
Best Regards.


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