1 Upstream-Status: Inappropriate [Backport]
2 From a8765482b00b7e1774f72c7def19ca711636e1d1 Mon Sep 17 00:00:00 2001
3 From: gerald <gerald@138bc75d-0d04-0410-961f-82ee72b054a4>
4 Date: Sun, 17 Apr 2011 21:34:29 +0000
5 Subject: [PATCH 133/200] * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
6 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
7 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
9 git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@172618 138bc75d-0d04-0410-961f-82ee72b054a4
11 index f2fb65e..f7e53f2 100644
12 --- a/gcc/config/sparc/freebsd.h
13 +++ b/gcc/config/sparc/freebsd.h
14 @@ -24,11 +24,19 @@ along with GCC; see the file COPYING3. If not see
15 { "fbsd_dynamic_linker", FBSD_DYNAMIC_LINKER }
17 /* FreeBSD needs the platform name (sparc64) defined.
18 - Emacs needs to know if the arch is 64 or 32-bits. */
20 -#undef CPP_CPU64_DEFAULT_SPEC
21 -#define CPP_CPU64_DEFAULT_SPEC \
22 - "-D__sparc64__ -D__sparc_v9__ -D__sparcv9 -D__arch64__"
23 + Emacs etc needs to know if the arch is 64 or 32-bits.
24 + This also selects which targets are available via -mcpu. */
26 +#undef FBSD_TARGET_CPU_CPP_BUILTINS
27 +#define FBSD_TARGET_CPU_CPP_BUILTINS() \
30 + builtin_define ("__sparc64__"); \
31 + builtin_define ("__sparc__"); \
32 + builtin_define ("__sparc_v9__"); \
33 + builtin_define ("__sparcv9"); \
38 #define ASM_SPEC "%{fpic|fPIC|fpie|fPIE:-K PIC} %(asm_cpu)"
39 @@ -152,6 +160,13 @@ along with GCC; see the file COPYING3. If not see
41 /* #define DWARF_OFFSET_SIZE PTR_SIZE */
44 +#undef TARGET_SUN_TLS
45 +#undef TARGET_GNU_TLS
46 +#define TARGET_SUN_TLS 0
47 +#define TARGET_GNU_TLS 1
51 #define ENDFILE_SPEC \
52 "%{ffast-math|funsafe-math-optimizations:crtfastmath.o%s} " \