From patchwork Fri Jun 22 12:45:25 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Iain Sandoe X-Patchwork-Id: 166592 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 282B8B6FA3 for ; Fri, 22 Jun 2012 22:45:46 +1000 (EST) Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gcc.gnu.org; s=default; x=1340973947; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: Received:From:Content-Type:Subject:Date:Message-ID:CC:To: MIME-Version:Mailing-List:Precedence:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:Sender:Delivered-To; bh=NeSN6IA NjGn8J+M1Cm1tGbg393M=; b=rpSk6xa9i1fBiHrC1zJ2e/DaW2/mEt6pOQFpdyE 7sqpPdaXlOFolYTzFhAEGnIE/9BAjB2BjpQXS1pnco+RVOMBar/zAs8JaIMAHAoL nFrxQAOLhC38MKJwfGcfvTTga+2UllDSjM2twstJ2PIihCSh4ITQqGCvB7nvqixT Bf20= Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=gcc.gnu.org; h=Received:Received:X-SWARE-Spam-Status:X-Spam-Check-By:Received:Received:Received:Received:From:Content-Type:Subject:Date:Message-ID:CC:To:MIME-Version:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=TKRkvO1dQYCcNotpx27FP4E4w817NSU6TwyfcOhr4VxSxzLW84MTeoPt4yvHGJ ESqaD6DhQwxomdw5h9KfcHBYg/dZMVVIHeWXggBPw5WO5DPysQlPNAX1mKh/Hn7W mdz82iDbgkd6ieRQzRFzJfQcrQ3sJX0FHhOcSXFyP/F8U=; Received: (qmail 4677 invoked by alias); 22 Jun 2012 12:45:44 -0000 Received: (qmail 4669 invoked by uid 22791); 22 Jun 2012 12:45:43 -0000 X-SWARE-Spam-Status: No, hits=-3.5 required=5.0 tests=BAYES_00, KHOP_RCVD_UNTRUST, RCVD_IN_HOSTKARMA_W, RCVD_IN_HOSTKARMA_WL X-Spam-Check-By: sourceware.org Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 22 Jun 2012 12:45:30 +0000 Received: from svr-orw-exc-10.mgc.mentorg.com ([147.34.98.58]) by relay1.mentorg.com with esmtp id 1Si3Ev-0006oX-QZ from Iain_Sandoe@mentor.com ; Fri, 22 Jun 2012 05:45:29 -0700 Received: from SVR-IES-FEM-01.mgc.mentorg.com ([137.202.0.104]) by SVR-ORW-EXC-10.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.4675); Fri, 22 Jun 2012 05:44:48 -0700 Received: from [127.0.0.1] (137.202.0.76) by SVR-IES-FEM-01.mgc.mentorg.com (137.202.0.104) with Microsoft SMTP Server id 14.1.289.1; Fri, 22 Jun 2012 13:45:27 +0100 From: Iain Sandoe Subject: [Patch MIPS/libgcc] fix crts. Date: Fri, 22 Jun 2012 13:45:25 +0100 Message-ID: CC: "" To: "" MIME-Version: 1.0 (Apple Message framework v1084) 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 Hello, While working on mips recently, I noticed that all the execute tests fail for simulator. This appears to be caused by an oversight in the move from gcc/config => libgcc, where t-elf defined extra parts including crt{begin,end}.o but these have been omitted from the re-built libgcc/config.host. The proposed patch adds the two crts to mips targets in libgcc/config.host (where they include t-elf) and coalesces those that have the same config. OK for trunk? Iain Index: libgcc/config.host =================================================================== --- libgcc/config.host (revision 188843) +++ libgcc/config.host (working copy) @@ -749,46 +749,32 @@ mips*-sde-elf*) esac extra_parts="$extra_parts crti.o crtn.o" ;; -mipsisa32-*-elf* | mipsisa32el-*-elf* | \ -mipsisa32r2-*-elf* | mipsisa32r2el-*-elf* | \ -mipsisa64-*-elf* | mipsisa64el-*-elf* | \ -mipsisa64r2-*-elf* | mipsisa64r2el-*-elf*) - tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16" - extra_parts="$extra_parts crti.o crtn.o" +mipstx39-*-elf* | mipstx39el-*-elf*) + tmake_file="$tmake_file mips/t-crtstuff mips/t-mips16" ;; mipsisa64sr71k-*-elf*) tmake_file="$tmake_file mips/t-elf mips/t-crtstuff t-fdpbit" - extra_parts="$extra_parts crti.o crtn.o" + extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o" ;; -mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*) - tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16" - extra_parts="$extra_parts crti.o crtn.o" - ;; -mips-*-elf* | mipsel-*-elf*) - tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16" - extra_parts="$extra_parts crti.o crtn.o" - ;; -mips64-*-elf* | mips64el-*-elf*) - tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16" - extra_parts="$extra_parts crti.o crtn.o" - ;; mips64vr-*-elf* | mips64vrel-*-elf*) tmake_file="$tmake_file mips/t-elf mips/t-vr mips/t-crtstuff" - extra_parts="$extra_parts crti.o crtn.o" + extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o" ;; -mips64orion-*-elf* | mips64orionel-*-elf*) +mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*) tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16" - extra_parts="$extra_parts crti.o crtn.o" + extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o" ;; mips*-*-rtems*) tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16" - extra_parts="$extra_parts crti.o crtn.o" + extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o" ;; + +mips*-*-elf*) + tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16" + extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o" + ;; mips-wrs-vxworks) ;; -mipstx39-*-elf* | mipstx39el-*-elf*) - tmake_file="$tmake_file mips/t-crtstuff mips/t-mips16" - ;; mmix-knuth-mmixware) extra_parts="crti.o crtn.o crtbegin.o crtend.o" tmake_file="${tmake_file} ${cpu_type}/t-${cpu_type}"