From patchwork Thu Nov 3 12:52:29 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: CFT: [build] Move crtstuff support to toplevel libgcc Date: Thu, 03 Nov 2011 02:52:29 -0000 From: Rainer Orth X-Patchwork-Id: 123441 Message-Id: To: Jason Merrill Cc: gcc-patches@gcc.gnu.org, Paolo Bonzini , Steve Ellcey , Hans-Peter Nilsson Jason Merrill 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 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 <