Mercurial > hg > CbC > CbC_gcc
annotate gcc/config/xtensa/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 /* Xtensa Linux configuration. |
2 Derived from the configuration for GCC for Intel i386 running Linux. | |
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) 2001, 2002, 2003, 2006, 2007, 2008, 2010, 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 it under | |
9 the terms of the GNU General Public License as published by the Free | |
10 Software Foundation; either version 3, or (at your option) any later | |
11 version. | |
12 | |
13 GCC is distributed in the hope that it will be useful, but WITHOUT ANY | |
14 WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
15 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
16 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 #define TARGET_OS_CPP_BUILTINS() LINUX_TARGET_OS_CPP_BUILTINS() | |
23 | |
24 #undef SUBTARGET_CPP_SPEC | |
25 #define SUBTARGET_CPP_SPEC "%{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT}" | |
26 | |
27 #undef TARGET_VERSION | |
28 #define TARGET_VERSION fputs (" (Xtensa GNU/Linux with ELF)", stderr); | |
29 | |
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
|
30 #undef SIZE_TYPE |
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
|
31 #define SIZE_TYPE "unsigned int" |
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
|
32 |
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
|
33 #undef PTRDIFF_TYPE |
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
|
34 #define PTRDIFF_TYPE "int" |
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
|
35 |
0 | 36 #undef WCHAR_TYPE |
37 #define WCHAR_TYPE "long int" | |
38 | |
39 #undef WCHAR_TYPE_SIZE | |
40 #define WCHAR_TYPE_SIZE 32 | |
41 | |
42 #undef ASM_SPEC | |
43 #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:
0
diff
changeset
|
44 "%{mtext-section-literals:--text-section-literals} \ |
0 | 45 %{mno-text-section-literals:--no-text-section-literals} \ |
46 %{mtarget-align:--target-align} \ | |
47 %{mno-target-align:--no-target-align} \ | |
48 %{mlongcalls:--longcalls} \ | |
49 %{mno-longcalls:--no-longcalls}" | |
50 | |
51 #define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1" | |
52 | |
53 #undef LINK_SPEC | |
54 #define LINK_SPEC \ | |
55 "%{shared:-shared} \ | |
56 %{!shared: \ | |
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
|
57 %{!static: \ |
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
|
58 %{rdynamic:-export-dynamic} \ |
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
|
59 -dynamic-linker " LINUX_DYNAMIC_LINKER "} \ |
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
|
60 %{static:-static}}" |
0 | 61 |
62 #undef LOCAL_LABEL_PREFIX | |
63 #define LOCAL_LABEL_PREFIX "." | |
64 | |
65 /* Always enable "-fpic" for Xtensa Linux. */ | |
66 #define XTENSA_ALWAYS_PIC 1 | |
67 | |
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
|
68 #undef DBX_REGISTER_NUMBER |
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
|
69 |
0 | 70 #define MD_UNWIND_SUPPORT "config/xtensa/linux-unwind.h" |
71 |