From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30768 invoked by alias); 4 Apr 2003 13:06:01 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 30735 invoked by uid 71); 4 Apr 2003 13:06:00 -0000 Date: Fri, 04 Apr 2003 13:06:00 -0000 Message-ID: <20030404130600.30734.qmail@sources.redhat.com> To: jakub@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Nick Clifton Subject: Re: c/8022: gcc 3.2 Solaris 64 bit shared libraries Reply-To: Nick Clifton X-SW-Source: 2003-04/txt/msg00137.txt.bz2 List-Id: The following reply was made to PR target/8022; it has been noted by GNATS. From: Nick Clifton To: Rainer Orth Cc: hyc@symas.com, jsurveyor@macquarie.net.au, gcc-patches@gcc.gnu.org, gcc-gnats@gcc.gnu.org Subject: Re: c/8022: gcc 3.2 Solaris 64 bit shared libraries Date: 04 Apr 2003 13:59:49 +0100 Hi Rainer, > This cannot be right: only gas understands the -TSO flag (is this > true for all versions currently claimed to be supported on Solaris > 2?), the native as certainly does not. I suppose this belongs to > sol2-gas-bi.h. Doh! Yes of course. Fixed as follows. Cheers Nick 2003-04-04 Nick Clifton * config/sparc/sol2-bi.h: Revert previous delta. * config/sparc/sol2-gas-bi.h (AS_SPARC64_FLAG): Prepend -TSO Index: gcc/config/sparc/sol2-bi.h =================================================================== RCS file: /cvs/gcc/gcc/gcc/config/sparc/sol2-bi.h,v retrieving revision 1.9 diff -c -3 -p -w -r1.9 sol2-bi.h *** gcc/config/sparc/sol2-bi.h 3 Apr 2003 10:21:22 -0000 1.9 --- gcc/config/sparc/sol2-bi.h 4 Apr 2003 12:56:42 -0000 *************** *** 10,16 **** #undef ASM_CPU32_DEFAULT_SPEC #define ASM_CPU32_DEFAULT_SPEC "" #undef ASM_CPU64_DEFAULT_SPEC ! #define ASM_CPU64_DEFAULT_SPEC AS_SPARC64_FLAG " -TSO" #if TARGET_CPU_DEFAULT == TARGET_CPU_v9 #undef CPP_CPU64_DEFAULT_SPEC --- 10,16 ---- #undef ASM_CPU32_DEFAULT_SPEC #define ASM_CPU32_DEFAULT_SPEC "" #undef ASM_CPU64_DEFAULT_SPEC ! #define ASM_CPU64_DEFAULT_SPEC AS_SPARC64_FLAG #if TARGET_CPU_DEFAULT == TARGET_CPU_v9 #undef CPP_CPU64_DEFAULT_SPEC *************** *** 24,38 **** #undef ASM_CPU32_DEFAULT_SPEC #define ASM_CPU32_DEFAULT_SPEC "-xarch=v8plusa" #undef ASM_CPU64_DEFAULT_SPEC ! #define ASM_CPU64_DEFAULT_SPEC AS_SPARC64_FLAG "a -TSO" #endif #if DEFAULT_ARCH32_P #define DEF_ARCH32_SPEC(__str) "%{!m64:" __str "}" ! #define DEF_ARCH64_SPEC(__str) "%{m64:" __str " -TSO}" #else #define DEF_ARCH32_SPEC(__str) "%{m32:" __str "}" ! #define DEF_ARCH64_SPEC(__str) "%{!m32:" __str " -TSO}" #endif #undef CPP_CPU_SPEC --- 24,38 ---- #undef ASM_CPU32_DEFAULT_SPEC #define ASM_CPU32_DEFAULT_SPEC "-xarch=v8plusa" #undef ASM_CPU64_DEFAULT_SPEC ! #define ASM_CPU64_DEFAULT_SPEC AS_SPARC64_FLAG "a" #endif #if DEFAULT_ARCH32_P #define DEF_ARCH32_SPEC(__str) "%{!m64:" __str "}" ! #define DEF_ARCH64_SPEC(__str) "%{m64:" __str "}" #else #define DEF_ARCH32_SPEC(__str) "%{m32:" __str "}" ! #define DEF_ARCH64_SPEC(__str) "%{!m32:" __str "}" #endif #undef CPP_CPU_SPEC Index: gcc/config/sparc/sol2-gas-bi.h =================================================================== RCS file: /cvs/gcc/gcc/gcc/config/sparc/sol2-gas-bi.h,v retrieving revision 1.2 diff -c -3 -p -w -r1.2 sol2-gas-bi.h *** gcc/config/sparc/sol2-gas-bi.h 17 Apr 2002 01:37:42 -0000 1.2 --- gcc/config/sparc/sol2-gas-bi.h 4 Apr 2003 12:56:42 -0000 *************** *** 2,5 **** running Solaris 2 using the GNU assembler. */ #undef AS_SPARC64_FLAG ! #define AS_SPARC64_FLAG "-64 -Av9" --- 2,5 ---- running Solaris 2 using the GNU assembler. */ #undef AS_SPARC64_FLAG ! #define AS_SPARC64_FLAG "-TSO -64 -Av9"