From patchwork Sun Nov 11 21:55:16 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Botcazou X-Patchwork-Id: 198301 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 B25DB2C007D for ; Mon, 12 Nov 2012 08:57:22 +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=1353275843; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: Received:From:To:Subject:Date:Message-ID:User-Agent:MIME-Version: Content-Type:Content-Transfer-Encoding:Mailing-List:Precedence: List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender: Delivered-To; bh=rX52Mtz7My2MByEBzOYmAO2/dMg=; b=xbSdunZj/LngNuJ W4a3nqcyymEGjS1ya1knm5NcCyvViDgPshoG8L2aT0HqyPdLlIcTrR1nGIDWP7u5 qT6SxW1rpg1AgY7Wij+B/c7TC1+vODh5CwCU8SC6Q9zjwRxvVpsHGM1k4rCP90G1 xRfmO1XNr43F59vwwEnMtZOdkg1k= 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:To:Subject:Date:Message-ID:User-Agent:MIME-Version:Content-Type:Content-Transfer-Encoding:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=CjHIDeB4ANep61gH1MPZJDJJX1BDq+6k2LAfoql+lDlEi0ilPwytdkn59Rk4UG hbs4K+GiiIQmBJhWQ5h2NRe1MNkJ6lOtQCv9xekzspjlk7JL+mOPP2bWcL8i2j8X WEVX9OA7WaAK5DTyxoY6pQLcaLFEj2/mwEABaW/4IcRws=; Received: (qmail 10424 invoked by alias); 11 Nov 2012 21:57:15 -0000 Received: (qmail 10394 invoked by uid 22791); 11 Nov 2012 21:57:14 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,TW_TJ X-Spam-Check-By: sourceware.org Received: from mel.act-europe.fr (HELO mel.act-europe.fr) (194.98.77.210) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 11 Nov 2012 21:57:07 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-smtp.eu.adacore.com (Postfix) with ESMTP id 6006ECB0BA8 for ; Sun, 11 Nov 2012 22:57:08 +0100 (CET) Received: from mel.act-europe.fr ([127.0.0.1]) by localhost (smtp.eu.adacore.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id kMwXy-GLCPOj for ; Sun, 11 Nov 2012 22:57:08 +0100 (CET) Received: from polaris.localnet (bon31-6-88-161-99-133.fbx.proxad.net [88.161.99.133]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mel.act-europe.fr (Postfix) with ESMTP id 2B6BBCB0B61 for ; Sun, 11 Nov 2012 22:57:08 +0100 (CET) From: Eric Botcazou To: gcc-patches@gcc.gnu.org Subject: [SPARC] Fix pasto in config/sparc/sol2.h Date: Sun, 11 Nov 2012 22:55:16 +0100 Message-ID: <75152702.lyUjgPtL63@polaris> User-Agent: KMail/4.7.2 (Linux/3.1.10-1.16-desktop; KDE/4.7.2; x86_64; ; ) MIME-Version: 1.0 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 This fixes a pasto in the --with-cpu=niagara4 support on Solaris, as well as applies a minor tweak to config/sparc/sparc.h. Tested on SPARC/Solaris, applied on the mainline and 4.7 branch. 2012-11-11 Eric Botcazou * config/sparc/sparc.h (AS_NIAGARA3_FLAG): Tweak. * config/sparc/sol2.h (TARGET_CPU_niagara4 support): Fix pasto. Index: config/sparc/sparc.h =================================================================== --- config/sparc/sparc.h (revision 193282) +++ config/sparc/sparc.h (working copy) @@ -1742,10 +1742,10 @@ extern int sparc_indent_opcode; #define TARGET_SUN_TLS TARGET_TLS #define TARGET_GNU_TLS 0 -#ifndef HAVE_AS_FMAF_HPC_VIS3 -#define AS_NIAGARA3_FLAG "b" -#else +#ifdef HAVE_AS_FMAF_HPC_VIS3 #define AS_NIAGARA3_FLAG "d" +#else +#define AS_NIAGARA3_FLAG "b" #endif /* The number of Pmode words for the setjmp buffer. */ Index: config/sparc/sol2.h =================================================================== --- config/sparc/sol2.h (revision 193282) +++ config/sparc/sol2.h (working copy) @@ -136,9 +136,9 @@ along with GCC; see the file COPYING3. #undef CPP_CPU64_DEFAULT_SPEC #define CPP_CPU64_DEFAULT_SPEC "" #undef ASM_CPU32_DEFAULT_SPEC -#define ASM_CPU32_DEFAULT_SPEC "-xarch=v8plusb" +#define ASM_CPU32_DEFAULT_SPEC "-xarch=v8plus" AS_NIAGARA3_FLAG #undef ASM_CPU64_DEFAULT_SPEC -#define ASM_CPU64_DEFAULT_SPEC AS_SPARC64_FLAG "b" +#define ASM_CPU64_DEFAULT_SPEC AS_SPARC64_FLAG AS_NIAGARA3_FLAG #undef ASM_CPU_DEFAULT_SPEC #define ASM_CPU_DEFAULT_SPEC ASM_CPU32_DEFAULT_SPEC #endif