OSDN Git Service

libgcc
authordannysmith <dannysmith@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 29 May 2007 08:09:16 +0000 (08:09 +0000)
committerdannysmith <dannysmith@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 29 May 2007 08:09:16 +0000 (08:09 +0000)
PR target/29498
* config.host (i[34567]86-*-cygwin* | i[34567]86-*-mingw*) Add
crtfastmath.o to extra_parts.  Add i386/t-crtfm to tmake_file.
* config/i386/t-crtfm: Compile crtfastmath.o with
-minline-all-stringops.

gcc

PR target/29498
* config/i386/t-crtfm: Compile crtfastmath.o with
-minline-all-stringops.
* config/i386/cygwin.h (ENDFILE_SPECS): Add crtfastmath.o.
* config/i386/mingw32.h (ENDFILE_SPECS): Add crtfastmath.o.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@125160 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/i386/cygwin.h
gcc/config/i386/mingw32.h
libgcc/ChangeLog
libgcc/config.host
libgcc/config/i386/t-crtfm

index ea23ee9..dfcd389 100644 (file)
@@ -1,3 +1,12 @@
+2007-05-29  Zuxy Meng  <zuxy.meng@gmail.com>
+            Danny Smith  <dannysmith@users.sourceforge.net>
+
+       PR target/29498
+       * config/i386/t-crtfm: Compile crtfastmath.o with
+       -minline-all-stringops.
+       * config/i386/cygwin.h (ENDFILE_SPECS): Add crtfastmath.o.
+       * config/i386/mingw32.h (ENDFILE_SPECS): Add crtfastmath.o.
+
 2007-05-28  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
 
        * doc/md.texi: Document constraints on HP PA-RISC.
 2007-05-28  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
 
        * doc/md.texi: Document constraints on HP PA-RISC.
index fe85a6d..22e0af2 100644 (file)
@@ -40,6 +40,10 @@ Boston, MA 02110-1301, USA.  */
   %{pg:gcrt0%O%s}}}\
 "
 
   %{pg:gcrt0%O%s}}}\
 "
 
+#undef ENDFILE_SPEC
+#define ENDFILE_SPEC \
+  "%{ffast-math|funsafe-math-optimizations:crtfastmath.o%s}"
+
 /* Normally, -lgcc is not needed since everything in it is in the DLL, but we
    want to allow things to be added to it when installing new versions of
    GCC without making a new CYGWIN.DLL, so we leave it.  Profiling is handled
 /* Normally, -lgcc is not needed since everything in it is in the DLL, but we
    want to allow things to be added to it when installing new versions of
    GCC without making a new CYGWIN.DLL, so we leave it.  Profiling is handled
index a39fbab..1145b13 100644 (file)
@@ -86,6 +86,10 @@ Boston, MA 02110-1301, USA.  */
 #define STARTFILE_SPEC "%{shared|mdll:dllcrt2%O%s} \
   %{!shared:%{!mdll:crt2%O%s}} %{pg:gcrt2%O%s}"
 
 #define STARTFILE_SPEC "%{shared|mdll:dllcrt2%O%s} \
   %{!shared:%{!mdll:crt2%O%s}} %{pg:gcrt2%O%s}"
 
+#undef ENDFILE_SPEC
+#define ENDFILE_SPEC \
+  "%{ffast-math|funsafe-math-optimizations:crtfastmath.o%s}"
+
 /* Override startfile prefix defaults.  */
 #ifndef STANDARD_STARTFILE_PREFIX_1
 #if TARGET_64BIT_DEFAULT
 /* Override startfile prefix defaults.  */
 #ifndef STANDARD_STARTFILE_PREFIX_1
 #if TARGET_64BIT_DEFAULT
index 8baa49f..fdcdd2f 100644 (file)
@@ -1,3 +1,12 @@
+2007-05-29  Zuxy Meng  <zuxy.meng@gmail.com>
+            Danny Smith  <dannysmith@users.sourceforge.net>
+
+       PR target/29498
+       * config.host (i[34567]86-*-cygwin* | i[34567]86-*-mingw*) Add
+       crtfastmath.o to extra_parts.  Add i386/t-crtfm to tmake_file.
+       * config/i386/t-crtfm: Compile crtfastmath.o with
+       -minline-all-stringops.
+
 2007-05-10  Richard Sandiford  <richard@codesourcery.com>
 
        * config.host (sparc-wrs-vxworks): New target.
 2007-05-10  Richard Sandiford  <richard@codesourcery.com>
 
        * config.host (sparc-wrs-vxworks): New target.
index 4de74cf..3e0cb47 100644 (file)
@@ -367,9 +367,13 @@ i[34567]86-*-sysv4*)               # Intel 80386's running system V.4
        ;;
 i[4567]86-wrs-vxworks|i[4567]86-wrs-vxworksae)
        ;;
        ;;
 i[4567]86-wrs-vxworks|i[4567]86-wrs-vxworksae)
        ;;
-i[34567]86-*-pe | i[34567]86-*-cygwin*)
+i[34567]86-*-pe)
        ;;
        ;;
-i[34567]86-*-mingw32* | x86_64-*-mingw*)
+i[34567]86-*-cygwin* | i[34567]86-*-mingw*)
+       extra_parts="crtfastmath.o"
+       tmake_file="i386/t-crtfm"
+       ;;
+x86_64-*-mingw*)
        ;;
 i[34567]86-*-uwin*)
        ;;
        ;;
 i[34567]86-*-uwin*)
        ;;
index fbe7d12..6e89296 100644 (file)
@@ -1,2 +1,5 @@
+# This is an endfile, Use -minline-all-stringops to ensure
+# that __builtin_memset doesn't refer to the lib function memset().
 crtfastmath.o: $(gcc_srcdir)/config/i386/crtfastmath.c
 crtfastmath.o: $(gcc_srcdir)/config/i386/crtfastmath.c
-       $(gcc_compile) -msse -c $(gcc_srcdir)/config/i386/crtfastmath.c
+       $(gcc_compile) -msse -minline-all-stringops -c \
+       $(gcc_srcdir)/config/i386/crtfastmath.c