From patchwork Wed Nov 7 23:32:49 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steve Ellcey X-Patchwork-Id: 197738 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 7E6202C00BA for ; Thu, 8 Nov 2012 10:33:48 +1100 (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=1352936028; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: Received:Received:From:Date:To:Subject:User-Agent:MIME-Version: Content-Type:Content-Transfer-Encoding:Message-ID:Mailing-List: Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:Sender:Delivered-To; bh=+koWI/z6wA0kZw2WclmibZ+zKxo=; b=SWwSbArTijsnbTm1YuRQLbttjnmFmoLJCWm+qVoXuPYTz5CuF9sRcgk1KTDZcm XC9FaoR78iEBLtftSHhof5Zj0N5RSDcWTB9fG1voV+SgGu14qUoIxKvcX+4iNJ9+ Wcp94qgwlEZt9JK7ftIEO/+DP++Sm3DqCczXCij9eEbf0= 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:X-M-MSG:Received:Received:Received:From:Date:To:Subject:User-Agent:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID:X-EMS-Proccessed:X-EMS-STAMP:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=egzrIZLc1U1qKnrwv3zDQjncn3Z09tq1AR8mKZIoIJsPrpx2fncfLV/87O7ymT 4r916yI9eol4NuGL5iU1FFMz2/W9WmPVw+wr6eMzpyYZzyws2+7ixpE6Rgy2PJG7 ogQwak8nCtmJBGCfTa7QXg8nlAl7WMv9y644gM4P8EJpU=; Received: (qmail 16270 invoked by alias); 7 Nov 2012 23:33:44 -0000 Received: (qmail 16262 invoked by uid 22791); 7 Nov 2012 23:33:43 -0000 X-SWARE-Spam-Status: No, hits=-2.7 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from dns1.mips.com (HELO dns1.mips.com) (12.201.5.69) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 07 Nov 2012 23:33:05 +0000 Received: from mailgate1.mips.com (mailgate1.mips.com [12.201.5.111]) by dns1.mips.com (8.13.8/8.13.8) with ESMTP id qA7NWxVh021543 for ; Wed, 7 Nov 2012 15:33:00 -0800 X-M-MSG: Received: from exchdb01.mips.com (unknown [192.168.36.84]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mailgate1.mips.com (Postfix) with ESMTP id 22174364652 for ; Wed, 7 Nov 2012 15:32:52 -0800 (PST) Received: from ubuntu-sellcey.mips.com (192.168.65.53) by exchhub01.mips.com (192.168.36.84) with Microsoft SMTP Server id 14.1.270.1; Wed, 7 Nov 2012 15:32:49 -0800 Received: by ubuntu-sellcey.mips.com (sSMTP sendmail emulation); Wed, 07 Nov 2012 15:32:49 -0800 From: "Steve Ellcey " Date: Wed, 7 Nov 2012 15:32:49 -0800 To: Subject: [patch, mips] Do not make -Os the default with mips-mti-elf target. User-Agent: Heirloom mailx 12.4 7/29/08 MIME-Version: 1.0 Message-ID: X-EMS-Proccessed: 6LP3oGfGVdcdb8o1aBnt6w== X-EMS-STAMP: 2iJQ2pB0xxr3jdSLrch9Ew== 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 I noticed that because my new mips-mti-elf target includes config/mt-sde it uses the -Os option by default when building runtime libraries. I would like to remove the use of -Os so that the runtime performance for the mips-mti-elf target is improved. If users want the -Os flag they can use the existing --enable-target-optspace configure option to get it. This patch creates config/mt-mti that is like mt-sde but without -Os and changes the mips*-mti-elf* target to use that include file instead of mt-sde. Tested with the mips-mti-elf target. OK to checkin? Steve Ellcey sellcey@mips.com 2012-11-07 Steve Ellcey * config/mt-mti: New file. * configure.ac (mips*-mti-elf*): Use config/mt-mti. * configure: Regenerate. diff --git a/config/mt-mti b/config/mt-mti new file mode 100644 index 0000000..85ad9e7 --- /dev/null +++ b/config/mt-mti @@ -0,0 +1,13 @@ +# We use -minterlink-mips16 so that the non-MIPS16 libraries can still be +# linked against partly-MIPS16 code. The -mcode-readable=pcrel option allows +# MIPS16 libraries to run on Harvard-style split I/D memories, so long +# as they have the D-to-I redirect for PC-relative loads. -mno-gpopt +# has two purposes: it allows libraries to be used in situations where +# $gp != our _gp, and it allows them to be built with -G8 while +# retaining link compatibility with -G0 and -G4. +# +# We do not default to -Os like mt-sde does, users who want that can configure +# with --enable-target-optspace. + +CFLAGS_FOR_TARGET += -minterlink-mips16 -mcode-readable=pcrel -mno-gpopt +CXXFLAGS_FOR_TARGET += -minterlink-mips16 -mcode-readable=pcrel -mno-gpopt diff --git a/configure.ac b/configure.ac index c346c2c..a87185a 100644 --- a/configure.ac +++ b/configure.ac @@ -2299,9 +2299,12 @@ case "${target}" in spu-*-*) target_makefile_frag="config/mt-spu" ;; - mips*-sde-elf* | mips*-mti-elf*) + mips*-sde-elf*) target_makefile_frag="config/mt-sde" ;; + mips*-mti-elf*) + target_makefile_frag="config/mt-mti" + ;; mipsisa*-*-elfoabi*) target_makefile_frag="config/mt-mips-elfoabi" ;;