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