re PR target/29498 (FTZ/DAZ for SSE should be ported to mingw32)

libgcc 
	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.


Co-Authored-By: Danny Smith <dannysmith@users.sourceforge.net>

From-SVN: r125160
This commit is contained in:
Zuxy Meng 2007-05-29 08:09:16 +00:00 committed by Danny Smith
parent 3e90ac4e45
commit 9bd196f0e3
6 changed files with 36 additions and 3 deletions

View 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.

View File

@ -40,6 +40,10 @@ Boston, MA 02110-1301, USA. */
%{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

View 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}"
#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

View 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.

View 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[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*)
;;

View 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
$(gcc_compile) -msse -c $(gcc_srcdir)/config/i386/crtfastmath.c
$(gcc_compile) -msse -minline-all-stringops -c \
$(gcc_srcdir)/config/i386/crtfastmath.c