c/8022: gcc 3.2 Solaris 64 bit shared libraries
Nick Clifton
nickc@redhat.com
Fri Apr 4 13:06:00 GMT 2003
The following reply was made to PR target/8022; it has been noted by GNATS.
From: Nick Clifton <nickc@redhat.com>
To: Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
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 <nickc@redhat.com>
* 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"
More information about the Gcc-prs
mailing list