Mercurial > hg > CbC > CbC_gcc
annotate gcc/config/rs6000/freebsd.h @ 67:f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
author | nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 22 Mar 2011 17:18:12 +0900 |
parents | 855418dad1a3 |
children | 04ced10e8804 |
rev | line source |
---|---|
0 | 1 /* Definitions for PowerPC running FreeBSD using the ELF format |
67
f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
36
diff
changeset
|
2 Copyright (C) 2001, 2003, 2007, 2009, 2010, 2011 |
f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
36
diff
changeset
|
3 Free Software Foundation, Inc. |
0 | 4 Contributed by David E. O'Brien <obrien@FreeBSD.org> and BSDi. |
5 | |
6 This file is part of GCC. | |
7 | |
8 GCC is free software; you can redistribute it and/or modify it | |
9 under the terms of the GNU General Public License as published | |
10 by the Free Software Foundation; either version 3, or (at your | |
11 option) any later version. | |
12 | |
13 GCC is distributed in the hope that it will be useful, but WITHOUT | |
14 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY | |
15 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public | |
16 License for more details. | |
17 | |
18 You should have received a copy of the GNU General Public License | |
19 along with GCC; see the file COPYING3. If not see | |
20 <http://www.gnu.org/licenses/>. */ | |
21 | |
22 /* Override the defaults, which exist to force the proper definition. */ | |
23 | |
24 #undef CPP_OS_DEFAULT_SPEC | |
25 #define CPP_OS_DEFAULT_SPEC "%(cpp_os_freebsd)" | |
26 | |
27 #undef STARTFILE_DEFAULT_SPEC | |
28 #define STARTFILE_DEFAULT_SPEC "%(startfile_freebsd)" | |
29 | |
30 #undef ENDFILE_DEFAULT_SPEC | |
31 #define ENDFILE_DEFAULT_SPEC "%(endfile_freebsd)" | |
32 | |
33 #undef LIB_DEFAULT_SPEC | |
34 #define LIB_DEFAULT_SPEC "%(lib_freebsd)" | |
35 | |
36 #undef LINK_START_DEFAULT_SPEC | |
37 #define LINK_START_DEFAULT_SPEC "%(link_start_freebsd)" | |
38 | |
39 #undef LINK_OS_DEFAULT_SPEC | |
40 #define LINK_OS_DEFAULT_SPEC "%(link_os_freebsd)" | |
41 | |
42 /* XXX: This is wrong for many platforms in sysv4.h. | |
43 We should work on getting that definition fixed. */ | |
44 #undef LINK_SHLIB_SPEC | |
45 #define LINK_SHLIB_SPEC "%{shared:-shared} %{!shared: %{static:-static}}" | |
46 | |
47 | |
48 /************************[ Target stuff ]***********************************/ | |
49 | |
50 /* Define the actual types of some ANSI-mandated types. | |
51 Needs to agree with <machine/ansi.h>. GCC defaults come from c-decl.c, | |
52 c-common.c, and config/<arch>/<arch>.h. */ | |
53 | |
54 #undef SIZE_TYPE | |
55 #define SIZE_TYPE "unsigned int" | |
56 | |
57 /* rs6000.h gets this wrong for FreeBSD. We use the GCC defaults instead. */ | |
58 #undef WCHAR_TYPE | |
59 | |
60 #undef WCHAR_TYPE_SIZE | |
61 #define WCHAR_TYPE_SIZE 32 | |
62 | |
63 #undef TARGET_VERSION | |
64 #define TARGET_VERSION fprintf (stderr, " (FreeBSD/PowerPC ELF)"); | |
65 | |
66 /* Override rs6000.h definition. */ | |
67 #undef ASM_APP_ON | |
68 #define ASM_APP_ON "#APP\n" | |
69 | |
70 /* Override rs6000.h definition. */ | |
71 #undef ASM_APP_OFF | |
72 #define ASM_APP_OFF "#NO_APP\n" | |
67
f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
36
diff
changeset
|
73 |
f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
36
diff
changeset
|
74 /* We don't need to generate entries in .fixup, except when |
f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
36
diff
changeset
|
75 -mrelocatable or -mrelocatable-lib is given. */ |
f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
36
diff
changeset
|
76 #undef RELOCATABLE_NEEDS_FIXUP |
f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
36
diff
changeset
|
77 #define RELOCATABLE_NEEDS_FIXUP \ |
f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
36
diff
changeset
|
78 (target_flags & target_flags_explicit & MASK_RELOCATABLE) |
f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
36
diff
changeset
|
79 |
f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
36
diff
changeset
|
80 #define DBX_REGISTER_NUMBER(REGNO) rs6000_dbx_register_number (REGNO) |