This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: 3.2 PATCH: Build multilibbed crtfastmath.o on 64-bit Solaris 2
David S. Miller writes:
> Please add "PR other/6836" to the ChangeLog and install this also on
> the 3.1 branch so that the bug can be closed. I will close the bug
> once you've installed this on the branch.
>
> Also, please extend your changes to fixup config/sparc/t-linux64 too.
> Pre-approved as it will be trivial and identical to the t-sol2-64
> change.
I've checked the patch below into the 3.1 branch, the t-linux64 part into
the trunk, and closed the PR.
Rainer
2002-06-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
* config/sparc/t-crtfm (crtfastmath.o): Prefix with $(T) for
multilibs.
* config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Add crtfastmath.o.
* config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Likewise.
Fixes PR other/6836.
Index: config/sparc/t-crtfm
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/sparc/t-crtfm,v
retrieving revision 1.1.2.1
diff -u -p -r1.1.2.1 t-crtfm
--- config/sparc/t-crtfm 5 Apr 2002 07:42:44 -0000 1.1.2.1
+++ config/sparc/t-crtfm 21 Jun 2002 11:24:31 -0000
@@ -1,4 +1,4 @@
EXTRA_PARTS += crtfastmath.o
-crtfastmath.o: $(srcdir)/config/sparc/crtfastmath.c $(GCC_PASSES)
- $(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) -c -o crtfastmath.o $(srcdir)/config/sparc/crtfastmath.c
+$(T)crtfastmath.o: $(srcdir)/config/sparc/crtfastmath.c $(GCC_PASSES)
+ $(GCC_FOR_TARGET) $(MULTILIB_CFLAGS) $(LIBGCC2_CFLAGS) -c -o $(T)crtfastmath.o $(srcdir)/config/sparc/crtfastmath.c
Index: config/sparc/t-sol2-64
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/sparc/t-sol2-64,v
retrieving revision 1.2.44.1
diff -u -p -r1.2.44.1 t-sol2-64
--- config/sparc/t-sol2-64 8 May 2002 23:18:34 -0000 1.2.44.1
+++ config/sparc/t-sol2-64 21 Jun 2002 11:24:31 -0000
@@ -5,6 +5,7 @@ MULTILIB_MATCHES =
LIBGCC = stmp-multilib
INSTALL_LIBGCC = install-multilib
-EXTRA_MULTILIB_PARTS=crtbegin.o crtend.o gmon.o crt1.o crti.o crtn.o gcrt1.o
+EXTRA_MULTILIB_PARTS=crtbegin.o crtend.o gmon.o crt1.o crti.o crtn.o gcrt1.o \
+ crtfastmath.o
SHLIB_SLIBDIR_SUFFIXES = sparcv9:/sparcv9 sparcv7:
Index: config/sparc/t-linux64
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/sparc/t-linux64,v
retrieving revision 1.6.8.2
diff -u -p -r1.6.8.2 t-linux64
--- config/sparc/t-linux64 8 May 2002 23:23:20 -0000 1.6.8.2
+++ config/sparc/t-linux64 21 Jun 2002 11:24:31 -0000
@@ -7,7 +7,8 @@ MULTILIB_EXCLUSIONS = m32/!m64/mno-app-r
LIBGCC = stmp-multilib
INSTALL_LIBGCC = install-multilib
-EXTRA_MULTILIB_PARTS=crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o
+EXTRA_MULTILIB_PARTS=crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o \
+ crtfastmath.o
SHLIB_SLIBDIR_SUFFIXES = 64:64 32: