Mercurial > hg > CbC > CbC_gcc
annotate gcc/config/pa/pa-linux.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 | 77e2b8dfacca |
children | 04ced10e8804 |
rev | line source |
---|---|
0 | 1 /* Definitions for PA_RISC with 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:
55
diff
changeset
|
2 Copyright 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2009, 2010, |
f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
55
diff
changeset
|
3 2011 |
0 | 4 Free Software Foundation, Inc. |
5 | |
6 This file is part of GCC. | |
7 | |
8 GCC is free software; you can redistribute it and/or modify | |
9 it under the terms of the GNU General Public License as published by | |
10 the Free Software Foundation; either version 3, or (at your option) | |
11 any later version. | |
12 | |
13 GCC is distributed in the hope that it will be useful, | |
14 but WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
16 GNU General Public 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 | |
23 #undef TARGET_OS_CPP_BUILTINS | |
24 #define TARGET_OS_CPP_BUILTINS() \ | |
25 do \ | |
26 { \ | |
27 LINUX_TARGET_OS_CPP_BUILTINS(); \ | |
28 builtin_assert ("machine=bigendian"); \ | |
29 } \ | |
30 while (0) | |
31 | |
32 #undef CPP_SPEC | |
33 #define CPP_SPEC "%{posix:-D_POSIX_SOURCE}" | |
34 | |
35 #undef ASM_SPEC | |
36 #define ASM_SPEC \ | |
67
f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
55
diff
changeset
|
37 "" |
0 | 38 |
39 /* Define this for shared library support because it isn't in the main | |
40 linux.h file. */ | |
41 | |
42 #define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1" | |
43 | |
44 #undef LINK_SPEC | |
45 #define LINK_SPEC "\ | |
46 %{shared:-shared} \ | |
47 %{!shared: \ | |
48 %{!static: \ | |
49 %{rdynamic:-export-dynamic} \ | |
67
f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
55
diff
changeset
|
50 -dynamic-linker " LINUX_DYNAMIC_LINKER "} \ |
0 | 51 %{static:-static}}" |
52 | |
53 /* glibc's profiling functions don't need gcc to allocate counters. */ | |
54 #define NO_DEFERRED_PROFILE_COUNTERS 1 | |
55 | |
56 /* Define the strings used for the special svr4 .type and .size directives. | |
57 These strings generally do not vary from one system running svr4 to | |
58 another, but if a given system (e.g. m88k running svr) needs to use | |
59 different pseudo-op names for these, they may be overridden in the | |
60 file which includes this one. */ | |
61 | |
62 #undef STRING_ASM_OP | |
63 #define STRING_ASM_OP "\t.stringz\t" | |
64 | |
65 #define TEXT_SECTION_ASM_OP "\t.text" | |
66 #define DATA_SECTION_ASM_OP "\t.data" | |
67 #define BSS_SECTION_ASM_OP "\t.section\t.bss" | |
68 | |
69 #define TARGET_ASM_FILE_START pa_linux_file_start | |
70 | |
71 /* We want local labels to start with period if made with asm_fprintf. */ | |
72 #undef LOCAL_LABEL_PREFIX | |
73 #define LOCAL_LABEL_PREFIX "." | |
74 | |
75 /* Define these to generate the Linux/ELF/SysV style of internal | |
76 labels all the time - i.e. to be compatible with | |
77 ASM_GENERATE_INTERNAL_LABEL in <elfos.h>. Compare these with the | |
78 ones in pa.h and note the lack of dollar signs in these. FIXME: | |
79 shouldn't we fix pa.h to use ASM_GENERATE_INTERNAL_LABEL instead? */ | |
80 | |
81 #undef ASM_OUTPUT_ADDR_VEC_ELT | |
82 #define ASM_OUTPUT_ADDR_VEC_ELT(FILE, VALUE) \ | |
83 if (TARGET_BIG_SWITCH) \ | |
84 fprintf (FILE, "\t.word .L%d\n", VALUE); \ | |
85 else \ | |
86 fprintf (FILE, "\tb .L%d\n\tnop\n", VALUE) | |
87 | |
88 #undef ASM_OUTPUT_ADDR_DIFF_ELT | |
89 #define ASM_OUTPUT_ADDR_DIFF_ELT(FILE, BODY, VALUE, REL) \ | |
90 if (TARGET_BIG_SWITCH) \ | |
91 fprintf (FILE, "\t.word .L%d-.L%d\n", VALUE, REL); \ | |
92 else \ | |
93 fprintf (FILE, "\tb .L%d\n\tnop\n", VALUE) | |
94 | |
95 /* Use the default. */ | |
96 #undef ASM_OUTPUT_LABEL | |
97 | |
98 /* NOTE: (*targetm.asm_out.internal_label)() is defined for us by elfos.h, and | |
99 does what we want (i.e. uses colons). It must be compatible with | |
100 ASM_GENERATE_INTERNAL_LABEL(), so do not define it here. */ | |
101 | |
102 /* Use the default. */ | |
103 #undef ASM_OUTPUT_INTERNAL_LABEL | |
104 | |
105 /* Use the default. */ | |
106 #undef TARGET_ASM_GLOBALIZE_LABEL | |
107 /* Globalizing directive for a label. */ | |
108 #define GLOBAL_ASM_OP ".globl " | |
109 | |
110 /* FIXME: Hacked from the <elfos.h> one so that we avoid multiple | |
111 labels in a function declaration (since pa.c seems determined to do | |
112 it differently) */ | |
113 | |
114 #undef ASM_DECLARE_FUNCTION_NAME | |
115 #define ASM_DECLARE_FUNCTION_NAME(FILE, NAME, DECL) \ | |
116 do \ | |
117 { \ | |
118 ASM_OUTPUT_TYPE_DIRECTIVE (FILE, NAME, "function"); \ | |
119 ASM_DECLARE_RESULT (FILE, DECL_RESULT (DECL)); \ | |
120 } \ | |
121 while (0) | |
122 | |
123 /* As well as globalizing the label, we need to encode the label | |
124 to ensure a plabel is generated in an indirect call. */ | |
125 | |
126 #undef ASM_OUTPUT_EXTERNAL_LIBCALL | |
127 #define ASM_OUTPUT_EXTERNAL_LIBCALL(FILE, FUN) \ | |
128 do \ | |
129 { \ | |
130 if (!FUNCTION_NAME_P (XSTR (FUN, 0))) \ | |
131 hppa_encode_label (FUN); \ | |
132 (*targetm.asm_out.globalize_label) (FILE, XSTR (FUN, 0)); \ | |
133 } \ | |
134 while (0) | |
135 | |
136 /* Linux always uses gas. */ | |
137 #undef TARGET_GAS | |
138 #define TARGET_GAS 1 |