aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMarius Strobl <marius@FreeBSD.org>2011-03-22 19:47:37 +0000
committerGerald Pfeifer <gerald@gcc.gnu.org>2011-03-22 19:47:37 +0000
commit999a7d80b587700fc74639d0da5849c4f2eb31db (patch)
treed6b932848024a80471e278214f7174edaac8fa54 /gcc
parent980a0ff422442a1a0695df63ea48352df9578b09 (diff)
downloadgcc-999a7d80b587700fc74639d0da5849c4f2eb31db.zip
gcc-999a7d80b587700fc74639d0da5849c4f2eb31db.tar.gz
gcc-999a7d80b587700fc74639d0da5849c4f2eb31db.tar.bz2
freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
* config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with... (FBSD_TARGET_CPU_CPP_BUILTINS): ...this. (TARGET_GNU_TLS, TARGET_SUN_TLS): Define. From-SVN: r171301
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/config/sparc/freebsd.h25
2 files changed, 26 insertions, 5 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 283a80e..e41ebc6 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2011-03-22 Marius Strobl <marius@FreeBSD.org>
+
+ * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
+ (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
+ (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
+
2011-03-21 Georg-Johann Lay <avr@gjlay.de>
* config/avr/avr-protos.h (expand_epilogue): Change prototype
diff --git a/gcc/config/sparc/freebsd.h b/gcc/config/sparc/freebsd.h
index f2fb65e..f7e53f2 100644
--- a/gcc/config/sparc/freebsd.h
+++ b/gcc/config/sparc/freebsd.h
@@ -24,11 +24,19 @@ along with GCC; see the file COPYING3. If not see
{ "fbsd_dynamic_linker", FBSD_DYNAMIC_LINKER }
/* FreeBSD needs the platform name (sparc64) defined.
- Emacs needs to know if the arch is 64 or 32-bits. */
-
-#undef CPP_CPU64_DEFAULT_SPEC
-#define CPP_CPU64_DEFAULT_SPEC \
- "-D__sparc64__ -D__sparc_v9__ -D__sparcv9 -D__arch64__"
+ Emacs etc needs to know if the arch is 64 or 32-bits.
+ This also selects which targets are available via -mcpu. */
+
+#undef FBSD_TARGET_CPU_CPP_BUILTINS
+#define FBSD_TARGET_CPU_CPP_BUILTINS() \
+ do \
+ { \
+ builtin_define ("__sparc64__"); \
+ builtin_define ("__sparc__"); \
+ builtin_define ("__sparc_v9__"); \
+ builtin_define ("__sparcv9"); \
+ } \
+ while (0)
#undef ASM_SPEC
#define ASM_SPEC "%{fpic|fPIC|fpie|fPIE:-K PIC} %(asm_cpu)"
@@ -152,6 +160,13 @@ along with GCC; see the file COPYING3. If not see
/* #define DWARF_OFFSET_SIZE PTR_SIZE */
+#ifdef HAVE_AS_TLS
+#undef TARGET_SUN_TLS
+#undef TARGET_GNU_TLS
+#define TARGET_SUN_TLS 0
+#define TARGET_GNU_TLS 1
+#endif
+
#undef ENDFILE_SPEC
#define ENDFILE_SPEC \
"%{ffast-math|funsafe-math-optimizations:crtfastmath.o%s} " \