This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: libgcc move to the top level
On Fri, Dec 29, 2006 at 11:13:07AM -0500, Daniel Jacobowitz wrote:
> is completely mechanical and I am comfortable committing as obvious). I
> will test the branch on powerpc64-linux and at least one other
> platform.
I needed this additional patch for powerpc64-linux. I went through the
entire set of migrated targets more thoroughly; powerpc* and frv*
needed adjustment.
--
Daniel Jacobowitz
CodeSourcery
2006-12-29 Daniel Jacobowitz <dan@codesourcery.com>
gcc/
* config/frv/t-linux (EXTRA_MULTILIB_PARTS): Clear.
2006-12-29 Daniel Jacobowitz <dan@codesourcery.com>
* config.host (powerpc64-*-linux*): Use rs6000/t-ppccomm.
(powerpc-*-linux*altivec*, powerpc-*-linux*spe*, powerpc-*-linux*):
Likewise.
* config/rs6000/t-ppccomm: New file.
--- gcc/config/frv/t-linux (revision 120308)
+++ gcc/config/frv/t-linux (local)
@@ -5,6 +5,9 @@ MULTILIB_MATCHES=
MULTILIB_EXCEPTIONS=
MULTILIB_EXTRA_OPTS=
+# We don't use frvbegin.o or frvend.o.
+EXTRA_MULTILIB_PARTS =
+
CRTSTUFF_T_CFLAGS = -fPIC
TARGET_LIBGCC2_CFLAGS = -fPIC
--- libgcc/config/rs6000/t-ppccomm (revision 120308)
+++ libgcc/config/rs6000/t-ppccomm (local)
@@ -0,0 +1,36 @@
+EXTRA_PARTS += ecrti$(objext) ecrtn$(objext) ncrti$(objext) ncrtn$(objext) \
+ crtsavres$(objext)
+
+# We build {e,n}crti.o and {e,n}crtn.o, which serve to add begin and
+# end labels to all of the special sections used when we link using gcc.
+
+# Assemble startup files.
+ecrti.S: $(gcc_srcdir)/config/rs6000/eabi-ci.asm
+ cat $(gcc_srcdir)/config/rs6000/eabi-ci.asm >ecrti.S
+
+ecrtn.S: $(gcc_srcdir)/config/rs6000/eabi-cn.asm
+ cat $(gcc_srcdir)/config/rs6000/eabi-cn.asm >ecrtn.S
+
+ncrti.S: $(gcc_srcdir)/config/rs6000/sol-ci.asm
+ cat $(gcc_srcdir)/config/rs6000/sol-ci.asm >ncrti.S
+
+ncrtn.S: $(gcc_srcdir)/config/rs6000/sol-cn.asm
+ cat $(gcc_srcdir)/config/rs6000/sol-cn.asm >ncrtn.S
+
+crtsavres.S: $(gcc_srcdir)/config/rs6000/crtsavres.asm
+ cat $(gcc_srcdir)/config/rs6000/crtsavres.asm >crtsavres.S
+
+ecrti$(objext): ecrti.S
+ $(crt_compile) -c ecrti.S
+
+ecrtn$(objext): ecrtn.S
+ $(crt_compile) -c ecrtn.S
+
+ncrti$(objext): ncrti.S
+ $(crt_compile) -c ncrti.S
+
+ncrtn$(objext): ncrtn.S
+ $(crt_compile) -c ncrtn.S
+
+crtsavres$(objext): crtsavres.S
+ $(crt_compile) -c crtsavres.S
--- libgcc/config.host (revision 120308)
+++ libgcc/config.host (local)
@@ -462,7 +462,7 @@ pdp11-*-bsd)
pdp11-*-*)
;;
powerpc64-*-linux*)
- tmake_file="${tmake_file} rs6000/t-ldbl128"
+ tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-ldbl128"
;;
powerpc64-*-gnu*)
tmake_file="${tmake_file} rs6000/t-ldbl128"
@@ -494,13 +494,13 @@ powerpc-*-eabi*)
powerpc-*-rtems*)
;;
powerpc-*-linux*altivec*)
- tmake_file="${tmake_file} rs6000/t-ldbl128"
+ tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-ldbl128"
;;
powerpc-*-linux*spe*)
- tmake_file="${tmake_file} rs6000/t-ldbl128"
+ tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-ldbl128"
;;
powerpc-*-linux*)
- tmake_file="${tmake_file} rs6000/t-ldbl128"
+ tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-ldbl128"
;;
powerpc-*-gnu-gnualtivec*)
tmake_file="${tmake_file} rs6000/t-ldbl128"