From patchwork Fri Jan 7 22:25:59 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Sherrill X-Patchwork-Id: 77923 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 2270FB7158 for ; Sat, 8 Jan 2011 09:26:12 +1100 (EST) Received: (qmail 30315 invoked by alias); 7 Jan 2011 22:26:10 -0000 Received: (qmail 30256 invoked by uid 22791); 7 Jan 2011 22:26:08 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL, BAYES_00, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from oarmail.oarcorp.com (HELO OARmail.OARCORP.com) (67.63.146.244) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 07 Jan 2011 22:26:02 +0000 Received: from iceland.oarcorp.com (192.168.1.160) by OARmail.OARCORP.com (192.168.2.2) with Microsoft SMTP Server (TLS) id 8.1.436.0; Fri, 7 Jan 2011 16:25:59 -0600 Message-ID: <4D2792F7.6060301@oarcorp.com> Date: Fri, 7 Jan 2011 16:25:59 -0600 From: Joel Sherrill User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101209 Fedora/3.1.7-0.35.b3pre.fc14 Thunderbird/3.1.7 MIME-Version: 1.0 To: "gcc-patches@gcc.gnu.org" , Ralf Corsepius Subject: readd crti/crtn to sparc-*-rtems* Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org 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