1 |
--- gcc/config/sparc/freebsd.h.orig 2004-07-17 21:18:58.000000000 +0000 |
2 |
+++ gcc/config/sparc/freebsd.h 2008-02-15 21:04:17.000000000 +0000 |
3 |
@@ -24,11 +24,21 @@ |
4 |
{ "fbsd_dynamic_linker", FBSD_DYNAMIC_LINKER } |
5 |
|
6 |
/* FreeBSD needs the platform name (sparc64) defined. |
7 |
- Emacs needs to know if the arch is 64 or 32-bits. */ |
8 |
+ Emacs needs to know if the arch is 64 or 32-bits. |
9 |
+ This also selects which targets are available via -mcpu. */ |
10 |
|
11 |
-#undef CPP_CPU64_DEFAULT_SPEC |
12 |
-#define CPP_CPU64_DEFAULT_SPEC \ |
13 |
- "-D__sparc64__ -D__sparc_v9__ -D__sparcv9 -D__arch64__" |
14 |
+#undef FBSD_TARGET_CPU_CPP_BUILTINS |
15 |
+#define FBSD_TARGET_CPU_CPP_BUILTINS() \ |
16 |
+ do \ |
17 |
+ { \ |
18 |
+ builtin_define ("__LP64__"); \ |
19 |
+ builtin_define ("__sparc64__"); \ |
20 |
+ builtin_define ("__sparc_v9__"); \ |
21 |
+ builtin_define ("__sparcv9"); \ |
22 |
+ builtin_define ("__sparc__"); \ |
23 |
+ builtin_define ("__arch64__"); \ |
24 |
+ } \ |
25 |
+ while (0) |
26 |
|
27 |
#define LINK_SPEC "%(link_arch) \ |
28 |
%{!mno-relax:%{!r:-relax}} \ |