This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: CFT: [build] Move crtstuff support to toplevel libgcc
- From: Rainer Orth <ro at CeBiTec dot Uni-Bielefeld dot DE>
- To: Jason Merrill <jason at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org, Paolo Bonzini <bonzini at gnu dot org>, Steve Ellcey <sje at cup dot hp dot com>, Hans-Peter Nilsson <hp at axis dot com>
- Date: Thu, 03 Nov 2011 13:52:29 +0100
- Subject: Re: CFT: [build] Move crtstuff support to toplevel libgcc
- References: <yddk4aehamk.fsf@manam.CeBiTec.Uni-Bielefeld.DE> <ydd1utqaeeq.fsf@manam.CeBiTec.Uni-Bielefeld.DE> <4EB1B1C3.5080709@redhat.com>
Jason Merrill <jason@redhat.com> writes:
> This broke bootstrap on powerpc64-unknown-linux-gnu, due to a couple of
> problems with t-ppccomm. I fixed the missing backslashes, but the startup
> file recipes are clearly wrong as well:
>
> ecrti$(objext): $(srcdir)/config/rs6000/eabi-ci.S
> $(crt_compile) -c ecrti.S
>
> Note that they try to compile a source file which no longer exists.
They do, but not by that name. In gcc/config, ecrti.S was generated as
a copy of eabi-ci.S, but in libgcc, this isn't necessary any longer. I
fixed the dependencies, but forgot to adapt the source files
Could you please try the following patch?
Sorry for all the breakage.
Rainer
2011-11-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
libgcc:
* config/rs6000/t-ppccomm (ecrti$(objext)): Use $<.
(ecrtn$(objext)): Likewise.
(ncrti$(objext)): Likewise.
(ncrtn$(objext)): Likewise.
diff --git a/libgcc/config/rs6000/t-ppccomm b/libgcc/config/rs6000/t-ppccomm
--- a/libgcc/config/rs6000/t-ppccomm
+++ b/libgcc/config/rs6000/t-ppccomm
@@ -29,13 +29,13 @@ LIB2ADD_ST += \
# Assemble startup files.
ecrti$(objext): $(srcdir)/config/rs6000/eabi-ci.S
- $(crt_compile) -c ecrti.S
+ $(crt_compile) -c $<
ecrtn$(objext): $(srcdir)/config/rs6000/eabi-cn.S
- $(crt_compile) -c ecrtn.S
+ $(crt_compile) -c $<
ncrti$(objext): $(srcdir)/config/rs6000/sol-ci.S
- $(crt_compile) -c ncrti.S
+ $(crt_compile) -c $<
ncrtn$(objext): $(srcdir)/config/rs6000/sol-cn.S
- $(crt_compile) -c ncrtn.S
+ $(crt_compile) -c <
--
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University