This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH/RFA]: SH Conditionalize __fpscr_values
- From: kaz Kojima <kkojima at rr dot iij4u dot or dot jp>
- To: gcc-patches at gcc dot gnu dot org
- Cc: joern dot rennecke at superh dot com, aoliva at redhat dot com
- Date: Sat, 21 Dec 2002 08:06:48 +0900
- Subject: [PATCH/RFA]: SH Conditionalize __fpscr_values
Hi,
The attached is for not to include __fpscr_values in libgcc.a if needed.
In sh-linux, we used to do so and define __fpscr_values at crt1.o to
avoid that each shared library has its copy.
I need approval for the change of lib1funcs.asm. Ok for mainline?
Regards,
kaz
--
2002-12-20 Kaz kojima <kkojima@gcc.gnu.org>
* config/sh/lib1funcs.asm (__fpscr_values): Conditionalize with
NO_FPSCR_VALUES.
* config/sh/t-linux (TARGET_LIBGCC2_CFLAGS): Add -DNO_FPSCR_VALUES.
--- ORIG/gcc/gcc/config/sh/lib1funcs.asm Tue Dec 17 07:07:39 2002
+++ LOCAL/gcc/gcc/config/sh/lib1funcs.asm Sat Dec 21 07:44:56 2002
@@ -1968,11 +1968,13 @@
.long GLOBAL(fpscr_values)
ENDFUNC(GLOBAL(set_fpscr))
+#ifndef NO_FPSCR_VALUES
#ifdef __ELF__
.comm GLOBAL(fpscr_values),8,4
#else
.comm GLOBAL(fpscr_values),8
#endif /* ELF */
+#endif /* NO_FPSCR_VALUES */
#endif /* SH3E / SH4 */
#endif /* L_set_fpscr */
#ifdef L_ic_invalidate
diff -urN ORIG/gcc/gcc/config/sh/t-linux LOCAL/gcc/gcc/config/sh/t-linux
--- ORIG/gcc/gcc/config/sh/t-linux Tue Dec 17 07:12:53 2002
+++ LOCAL/gcc/gcc/config/sh/t-linux Sat Dec 21 07:44:56 2002
@@ -1,4 +1,4 @@
-TARGET_LIBGCC2_CFLAGS = -fpic
+TARGET_LIBGCC2_CFLAGS = -fpic -DNO_FPSCR_VALUES
LIB1ASMFUNCS_CACHE = _ic_invalidate
LIB2FUNCS_EXTRA=