From patchwork Fri Jan 7 22:25:59 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: readd crti/crtn to sparc-*-rtems* Date: Fri, 07 Jan 2011 12:25:59 -0000 From: Joel Sherrill X-Patchwork-Id: 77923 Message-Id: <4D2792F7.6060301@oarcorp.com> To: "gcc-patches@gcc.gnu.org" , Ralf Corsepius Hi, The recent rework in config/sparc broke sparc-*-rtems*. This patch restores it to functional state. OK to commit. 2011-01-07 Joel Sherrill * config.gcc (tmake_file): Add t-rtems to list. (extra_parts): Add crti.o and crtn.o. * config/sparc/t-rtems: New file. Index: gcc/config.gcc =================================================================== --- gcc/config.gcc (revision 168556) +++ gcc/config.gcc (working copy) @@ -2481,8 +2487,8 @@ ;; sparc-*-rtems*) tm_file="${tm_file} dbxelf.h elfos.h sparc/sysv4.h sparc/sp-elf.h sparc/rtemself.h rtems.h newlib-stdint.h" - tmake_file="sparc/t-elf sparc/t-crtfm t-rtems" - extra_parts="crtbegin.o crtend.o" + tmake_file="sparc/t-elf sparc/t-crtfm sparc/t-rtems t-rtems" + extra_parts="crti.o crtn.o crtbegin.o crtend.o" ;; sparc-*-linux*) tm_file="${tm_file} dbxelf.h elfos.h sparc/sysv4.h linux.h glibc-stdint.h" Index: gcc/config/sparc/t-rtems =================================================================== --- gcc/config/sparc/t-rtems (revision 0) +++ gcc/config/sparc/t-rtems (revision 0) @@ -0,0 +1,23 @@ +# Copyright (C) 2010 Free Software Foundation, Inc. +# +# This file is part of GCC. +# +# GCC is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3, or (at your option) +# any later version. +# +# GCC is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with GCC; see the file COPYING3. If not see +# . + +# Assemble startup files. +$(T)crti.o: $(srcdir)/config/sparc/sol2-ci.asm $(GCC_PASSES) + $(GCC_FOR_TARGET) $(MULTILIB_CFLAGS) -c -o $(T)crti.o -x assembler-with-cpp $(srcdir)/config/sparc/sol2-ci.asm +$(T)crtn.o: $(srcdir)/config/sparc/sol2-cn.asm $(GCC_PASSES) + $(GCC_FOR_TARGET) $(MULTILIB_CFLAGS) -c -o $(T)crtn.o -x assembler-with-cpp $(srcdir)/config/sparc/sol2-cn.asm