Mercurial > hg > CbC > CbC_gcc
comparison gcc/config/netbsd-aout.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 | a06113de4d67 |
children |
comparison
equal
deleted
inserted
replaced
65:65488c3d617d | 67:f6334be47118 |
---|---|
1 /* Common configuration file for NetBSD a.out targets. | 1 /* Common configuration file for NetBSD a.out targets. |
2 Copyright (C) 2002, 2007 Free Software Foundation, Inc. | 2 Copyright (C) 2002, 2007, 2010 Free Software Foundation, Inc. |
3 Contributed by Wasabi Systems, Inc. | 3 Contributed by Wasabi Systems, Inc. |
4 | 4 |
5 This file is part of GCC. | 5 This file is part of GCC. |
6 | 6 |
7 GCC is free software; you can redistribute it and/or modify | 7 GCC is free software; you can redistribute it and/or modify |
23 do \ | 23 do \ |
24 { \ | 24 { \ |
25 NETBSD_OS_CPP_BUILTINS_COMMON(); \ | 25 NETBSD_OS_CPP_BUILTINS_COMMON(); \ |
26 } \ | 26 } \ |
27 while (0) | 27 while (0) |
28 | |
29 /* This defines which switch letters take arguments. */ | |
30 | |
31 #undef SWITCH_TAKES_ARG | |
32 #define SWITCH_TAKES_ARG(CHAR) \ | |
33 (DEFAULT_SWITCH_TAKES_ARG(CHAR) \ | |
34 || (CHAR) == 'R') | |
35 | 28 |
36 | 29 |
37 /* Provide an ASM_SPEC appropriate for NetBSD. Currently we only deal | 30 /* Provide an ASM_SPEC appropriate for NetBSD. Currently we only deal |
38 with the options for generating PIC code. */ | 31 with the options for generating PIC code. */ |
39 | 32 |
62 #undef NETBSD_LINK_SPEC_AOUT | 55 #undef NETBSD_LINK_SPEC_AOUT |
63 #define NETBSD_LINK_SPEC_AOUT \ | 56 #define NETBSD_LINK_SPEC_AOUT \ |
64 "%{nostdlib:-nostdlib} \ | 57 "%{nostdlib:-nostdlib} \ |
65 %{!shared: \ | 58 %{!shared: \ |
66 %{!nostdlib: \ | 59 %{!nostdlib: \ |
67 %{!r*: \ | 60 %{!r: \ |
68 %{!e*:-e start}}} \ | 61 %{!e*:-e start}}} \ |
69 -dc -dp \ | 62 -dc -dp \ |
70 %{static:-Bstatic}} \ | 63 %{static:-Bstatic}} \ |
71 %{shared:-Bshareable} \ | 64 %{shared:-Bshareable} \ |
72 %{R*} \ | 65 %{R*} \ |
73 %{assert*}" | 66 %{assert*}" |
74 | 67 |
75 /* Default LINK_SPEC. */ | 68 /* Default LINK_SPEC. */ |
76 #undef LINK_SPEC | 69 #undef LINK_SPEC |
77 #define LINK_SPEC NETBSD_LINK_SPEC_AOUT | 70 #define LINK_SPEC NETBSD_LINK_SPEC_AOUT |
78 | |
79 /* Some imports from svr4.h in support of shared libraries. */ | |
80 | 71 |
81 /* Define the strings used for the .type, .size, and .set directives. | 72 /* Define the strings used for the .type, .size, and .set directives. |
82 These strings generally do not vary from one system running NetBSD | 73 These strings generally do not vary from one system running NetBSD |
83 to another, but if a given system needs to use different pseudo-op | 74 to another, but if a given system needs to use different pseudo-op |
84 names for these, they may be overridden in the file included after | 75 names for these, they may be overridden in the file included after |
139 #define ASM_DECLARE_FUNCTION_NAME(FILE, NAME, DECL) \ | 130 #define ASM_DECLARE_FUNCTION_NAME(FILE, NAME, DECL) \ |
140 do \ | 131 do \ |
141 { \ | 132 { \ |
142 ASM_OUTPUT_TYPE_DIRECTIVE (FILE, NAME, "function"); \ | 133 ASM_OUTPUT_TYPE_DIRECTIVE (FILE, NAME, "function"); \ |
143 ASM_DECLARE_RESULT (FILE, DECL_RESULT (DECL)); \ | 134 ASM_DECLARE_RESULT (FILE, DECL_RESULT (DECL)); \ |
144 ASM_OUTPUT_LABEL(FILE, NAME); \ | 135 ASM_OUTPUT_FUNCTION_LABEL (FILE, NAME, DECL); \ |
145 } \ | 136 } \ |
146 while (0) | 137 while (0) |
147 | 138 |
148 | 139 |
149 /* Write the extra assembler code needed to declare an object properly. */ | 140 /* Write the extra assembler code needed to declare an object properly. */ |