From patchwork Sun Nov 11 21:55:16 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [SPARC] Fix pasto in config/sparc/sol2.h Date: Sun, 11 Nov 2012 11:55:16 -0000 From: Eric Botcazou X-Patchwork-Id: 198301 Message-Id: <75152702.lyUjgPtL63@polaris> To: 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