This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/34025] Warning when compiling with -m64 -ffast-math on Intel Darwin
- From: "howarth at nitro dot med dot uc dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Dec 2007 21:35:35 -0000
- Subject: [Bug target/34025] Warning when compiling with -m64 -ffast-math on Intel Darwin
- References: <bug-34025-12313@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #7 from howarth at nitro dot med dot uc dot edu 2007-12-15 21:35 -------
I find the following works here...
cd /sw/src/fink.build/gcc43-4.2.999-20071214/darwin_objdir/gcc
./xgcc -m64 -B./ -B/sw/lib/gcc4.3/i686-apple-darwin9/bin/ -isystem
/sw/lib/gcc4.3/i686-apple-darwin9/include -isystem
/sw/lib/gcc4.3/i686-apple-darwin9/sys-include
-L/sw/src/fink.build/gcc43-4.2.999-20071214/darwin_objdir/gcc/../ld -O2
-DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition -isystem ./include -fPIC -pipe -g -DHAVE_GTHR_DEFAULT
-DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -msse -minline-all-stringops -c
../../gcc-4.3-20071214/gcc/config/i386/crtfastmath.c -o x86_64/crtfastmath.o
This eliminates the failures in make check at -m64. I wonder if we really
shouldn't be using lines like...
EXTRA_MULTILIB_PARTS=crtbegin.o crtend.o crtbeginS.o crtendS.o \
crtbeginT.o crtprec32.o crtprec64.o crtprec80.o \
crtfastmath.o
from gcc/config/i386/t-linux64 for t-darwin? On x86-64 linux, a build of gcc
trunk properly creates the correct architecture of crtfastmath.o in the 32
subdirectory. Or alternatively maybe it would be sufficient to just add
crtfastmath.o to the line...
# How to build crt3.o
EXTRA_MULTILIB_PARTS=crt3.o
in gcc/config/t-darwin since that seems to properly build the correct
architecture of crt3.o for the x86_64 subdirectory on i686-apple-darwin9.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34025