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

[patch committed SH] Add -mieee to *_LIBGCC2_CFLAGS


Hi,

The attached patch adds -mieee to the compiler options used
for libgcc2.c.  I've missed that libgcc2.c:__{mul,div}dc3
use nan&inf which require -mieee on SH.  Although the third
hunk is currently redundant, I add it as a fool proof.
The patch is tested for sh-elf and sh4-unknown-linux-gnu.
Committed.

Regards,
	kaz
--
[gcc/ChangeLog]
2009-08-22  Kaz Kojima  <kkojima@gcc.gnu.org>

	* config/sh/t-sh (TARGET_LIBGCC2_CFLAGS): Define.
	* config/sh/t-netbsd (TARGET_LIBGCC2_CFLAGS): Add -mieee.

[libgcc/ChangeLog]
2009-08-22  Kaz Kojima  <kkojima@gcc.gnu.org>

	* config/sh/t-linux (HOST_LIBGCC2_CFLAGS): Add -mieee.

diff -uprN ORIG/trunk/gcc/config/sh/t-netbsd trunk/gcc/config/sh/t-netbsd
--- ORIG/trunk/gcc/config/sh/t-netbsd	2009-04-22 09:30:22.000000000 +0900
+++ trunk/gcc/config/sh/t-netbsd	2009-08-20 10:40:24.000000000 +0900
@@ -1,4 +1,4 @@
-# Copyright (C) 2002, 2004 Free Software Foundation, Inc.
+# Copyright (C) 2002, 2004, 2009 Free Software Foundation, Inc.
 #
 # This file is part of GCC.
 #
@@ -16,7 +16,7 @@
 # along with GCC; see the file COPYING3.  If not see
 # <http://www.gnu.org/licenses/>.
 
-TARGET_LIBGCC2_CFLAGS = -fpic
+TARGET_LIBGCC2_CFLAGS = -fpic -mieee
 LIB1ASMFUNCS_CACHE = _ic_invalidate
 
 LIB2FUNCS_EXTRA=
diff -uprN ORIG/trunk/gcc/config/sh/t-sh trunk/gcc/config/sh/t-sh
--- ORIG/trunk/gcc/config/sh/t-sh	2009-05-28 09:19:33.000000000 +0900
+++ trunk/gcc/config/sh/t-sh	2009-08-20 10:36:23.000000000 +0900
@@ -29,6 +29,8 @@ LIB1ASMFUNCS = _ashiftrt _ashiftrt_n _as
   $(LIB1ASMFUNCS_CACHE)
 LIB1ASMFUNCS_CACHE = _ic_invalidate _ic_invalidate_array
 
+TARGET_LIBGCC2_CFLAGS = -mieee
+
 # We want fine grained libraries, so use the new code to build the
 # floating point emulation libraries.
 FPBIT = fp-bit.c
diff -uprN ORIG/trunk/libgcc/config/sh/t-linux trunk/libgcc/config/sh/t-linux
--- ORIG/trunk/libgcc/config/sh/t-linux	2007-01-09 19:52:01.000000000 +0900
+++ trunk/libgcc/config/sh/t-linux	2009-08-20 10:01:29.000000000 +0900
@@ -1,4 +1,4 @@
-HOST_LIBGCC2_CFLAGS = -fpic -DNO_FPSCR_VALUES
+HOST_LIBGCC2_CFLAGS = -fpic -mieee -DNO_FPSCR_VALUES
 
 # Override t-slibgcc-elf-ver to export some libgcc symbols with
 # the symbol versions that glibc used, and hide some lib1func


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