From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23984 invoked by alias); 8 Aug 2014 15:39:21 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 23974 invoked by uid 89); 8 Aug 2014 15:39:21 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mailapp01.imgtec.com Received: from mailapp01.imgtec.com (HELO mailapp01.imgtec.com) (195.59.15.196) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 08 Aug 2014 15:39:20 +0000 Received: from KLMAIL01.kl.imgtec.org (unknown [192.168.5.35]) by Websense Email Security Gateway with ESMTPS id 8CC0E444C992B; Fri, 8 Aug 2014 16:39:13 +0100 (IST) Received: from BAMAIL02.ba.imgtec.org (192.168.66.28) by KLMAIL01.kl.imgtec.org (192.168.5.35) with Microsoft SMTP Server (TLS) id 14.3.195.1; Fri, 8 Aug 2014 16:39:16 +0100 Received: from ubuntu-sellcey.mips.com (192.168.65.53) by bamail02.ba.imgtec.org (192.168.66.28) with Microsoft SMTP Server id 14.3.174.1; Fri, 8 Aug 2014 08:39:07 -0700 Received: by ubuntu-sellcey.mips.com (sSMTP sendmail emulation); Fri, 08 Aug 2014 08:39:07 -0700 From: "Steve Ellcey " Date: Fri, 08 Aug 2014 15:39:00 -0000 To: , , , Subject: [PATCH mips] Do not compile mips16.S in soft-float mode User-Agent: Heirloom mailx 12.5 6/20/10 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-ID: X-SW-Source: 2014-08/txt/msg00906.txt.bz2 This libgcc patch is the second of two patches needed to build GCC soft-float multilibs when using the latest binutils. It skips assembling any of the code in mips16.S when in soft-float mode because the code is not used when in soft-float mode and because doing so generates errors during assembly (due to using floating point registers in soft-float mode). Tested with the mips-mti-linux-gnu toolchain. Steve Ellcey sellcey@mips.com 2014-08-08 Steve Ellcey * config/mips/mips16.S: Skip when __mips_soft_float is defined. diff --git a/libgcc/config/mips/mips16.S b/libgcc/config/mips/mips16.S index 6a43a98..150a23a 100644 --- a/libgcc/config/mips/mips16.S +++ b/libgcc/config/mips/mips16.S @@ -21,7 +21,7 @@ a copy of the GCC Runtime Library Exception along with this program; see the files COPYING3 and COPYING.RUNTIME respectively. If not, see . */ -#ifdef __mips_micromips +#if defined(__mips_micromips) || defined(__mips_soft_float) /* DO NOTHING */ #else @@ -749,4 +749,4 @@ CALL_STUB_RET (__mips16_call_stub_dc_10, 10, DC) #endif /* !__mips_single_float */ #endif -#endif /* __mips_micromips */ +#endif /* defined(__mips_micromips) || defined(__mips_soft_float) */