Mercurial > hg > CbC > CbC_gcc
annotate gcc/config/alpha/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 | a06113de4d67 |
children | 04ced10e8804 |
rev | line source |
---|---|
0 | 1 /* Definitions of target machine for GNU compiler, |
2 for Alpha Linux-based GNU systems. | |
67
f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
3 Copyright (C) 1996, 1997, 1998, 2002, 2003, 2004, 2005, 2006, 2007, 2009, |
f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
4 2010 Free Software Foundation, Inc. |
0 | 5 Contributed by Richard Henderson. |
6 | |
7 This file is part of GCC. | |
8 | |
9 GCC is free software; you can redistribute it and/or modify | |
10 it under the terms of the GNU General Public License as published by | |
11 the Free Software Foundation; either version 3, or (at your option) | |
12 any later version. | |
13 | |
14 GCC is distributed in the hope that it will be useful, | |
15 but WITHOUT ANY WARRANTY; without even the implied warranty of | |
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
17 GNU General Public License for more details. | |
18 | |
19 You should have received a copy of the GNU General Public License | |
20 along with GCC; see the file COPYING3. If not see | |
21 <http://www.gnu.org/licenses/>. */ | |
22 | |
23 #undef TARGET_DEFAULT | |
24 #define TARGET_DEFAULT (MASK_FPREGS | MASK_GAS) | |
25 | |
26 #define TARGET_OS_CPP_BUILTINS() \ | |
27 do { \ | |
28 builtin_define ("__gnu_linux__"); \ | |
29 builtin_define ("_LONGLONG"); \ | |
30 builtin_define_std ("linux"); \ | |
31 builtin_define_std ("unix"); \ | |
32 builtin_assert ("system=linux"); \ | |
33 builtin_assert ("system=unix"); \ | |
34 builtin_assert ("system=posix"); \ | |
35 /* The GNU C++ standard library requires this. */ \ | |
36 if (c_dialect_cxx ()) \ | |
37 builtin_define ("_GNU_SOURCE"); \ | |
38 } while (0) | |
39 | |
40 #undef LIB_SPEC | |
41 #define LIB_SPEC \ | |
42 "%{pthread:-lpthread} \ | |
43 %{shared:-lc} \ | |
44 %{!shared: %{profile:-lc_p}%{!profile:-lc}}" | |
45 | |
46 #undef CPP_SPEC | |
47 #define CPP_SPEC "%{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT}" | |
48 | |
49 /* Show that we need a GP when profiling. */ | |
50 #undef TARGET_PROFILING_NEEDS_GP | |
51 #define TARGET_PROFILING_NEEDS_GP 1 | |
52 | |
53 /* Don't care about faults in the prologue. */ | |
54 #undef TARGET_CAN_FAULT_IN_PROLOGUE | |
55 #define TARGET_CAN_FAULT_IN_PROLOGUE 1 | |
56 | |
57 /* OS fixes up EV5 data fault on prefetch. */ | |
58 #undef TARGET_FIXUP_EV5_PREFETCH | |
59 #define TARGET_FIXUP_EV5_PREFETCH 1 | |
60 | |
61 #undef WCHAR_TYPE | |
62 #define WCHAR_TYPE "int" | |
63 | |
67
f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
64 #ifdef SINGLE_LIBC |
f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
65 #define OPTION_GLIBC (DEFAULT_LIBC == LIBC_GLIBC) |
f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
66 #else |
f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
67 #define OPTION_GLIBC (linux_libc == LIBC_GLIBC) |
f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
68 #endif |
0 | 69 |
70 /* Determine whether the entire c99 runtime is present in the | |
71 runtime library. */ | |
72 #define TARGET_C99_FUNCTIONS (OPTION_GLIBC) | |
73 | |
74 /* Whether we have sincos that follows the GNU extension. */ | |
75 #define TARGET_HAS_SINCOS (OPTION_GLIBC) | |
76 | |
77 #define TARGET_POSIX_IO | |
78 | |
79 #define LINK_GCC_C_SEQUENCE_SPEC \ | |
80 "%{static:--start-group} %G %L %{static:--end-group}%{!static:%G}" | |
81 | |
82 /* Use --as-needed -lgcc_s for eh support. */ | |
83 #ifdef HAVE_LD_AS_NEEDED | |
84 #define USE_LD_AS_NEEDED 1 | |
85 #endif | |
86 | |
87 #define MD_UNWIND_SUPPORT "config/alpha/linux-unwind.h" | |
88 | |
89 /* Define if long doubles should be mangled as 'g'. */ | |
90 #define TARGET_ALTERNATE_LONG_DOUBLE_MANGLING | |
91 | |
92 /* -mcpu=native handling only makes sense with compiler running on | |
93 an Alpha chip. */ | |
94 #if defined(__alpha__) || defined(__alpha) | |
95 extern const char *host_detect_local_cpu (int argc, const char **argv); | |
96 # define EXTRA_SPEC_FUNCTIONS \ | |
97 { "local_cpu_detect", host_detect_local_cpu }, | |
98 | |
99 # define MCPU_MTUNE_NATIVE_SPECS \ | |
100 " %{mcpu=native:%<mcpu=native %:local_cpu_detect(cpu)}" \ | |
101 " %{mtune=native:%<mtune=native %:local_cpu_detect(tune)}" | |
102 #else | |
103 # define MCPU_MTUNE_NATIVE_SPECS "" | |
104 #endif | |
105 | |
106 #define DRIVER_SELF_SPECS MCPU_MTUNE_NATIVE_SPECS |