Mercurial > hg > CbC > CbC_gcc
annotate gcc/config/m32r/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 for Renesas M32R running Linux-based GNU systems using ELF. |
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
|
2 Copyright (C) 2003, 2004, 2006, 2007, 2010, 2011 |
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 Free Software Foundation, Inc. |
0 | 4 |
5 This file is part of GCC. | |
6 | |
7 GCC is free software; you can redistribute it and/or modify it | |
8 under the terms of the GNU General Public License as published | |
9 by the Free Software Foundation; either version 3, or (at your | |
10 option) any later version. | |
11 | |
12 GCC is distributed in the hope that it will be useful, but WITHOUT | |
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY | |
14 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public | |
15 License for more details. | |
16 | |
17 You should have received a copy of the GNU General Public License | |
18 along with GCC; see the file COPYING3. If not see | |
19 <http://www.gnu.org/licenses/>. */ | |
20 | |
21 #define LINUX_DEFAULT_ELF | |
22 | |
23 /* A lie, I guess, but the general idea behind linux/ELF is that we are | |
24 supposed to be outputting something that will assemble under SVr4. | |
25 This gets us pretty close. */ | |
26 | |
27 #undef TARGET_VERSION | |
28 #define TARGET_VERSION fprintf (stderr, " (M32R GNU/Linux with ELF)"); | |
29 | |
30 #undef SIZE_TYPE | |
31 #define SIZE_TYPE "unsigned int" | |
32 | |
33 #undef PTRDIFF_TYPE | |
34 #define PTRDIFF_TYPE "int" | |
35 | |
36 #undef WCHAR_TYPE | |
37 #define WCHAR_TYPE "long int" | |
38 | |
39 #undef WCHAR_TYPE_SIZE | |
40 #define WCHAR_TYPE_SIZE BITS_PER_WORD | |
41 | |
42 /* Provide a LINK_SPEC appropriate for Linux. Here we provide support | |
43 for the special GCC options -static and -shared, which allow us to | |
44 link things in one of these three modes by applying the appropriate | |
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
|
45 combinations of options at link-time. |
0 | 46 |
47 When the -shared link option is used a final link is not being | |
48 done. */ | |
49 | |
50 #define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2" | |
51 | |
52 #undef LINK_SPEC | |
53 #if TARGET_LITTLE_ENDIAN | |
54 #define LINK_SPEC "%(link_cpu) -m m32rlelf_linux %{shared:-shared} \ | |
55 %{!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
|
56 %{!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
|
57 %{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
|
58 -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
|
59 %{static:-static}}" |
0 | 60 #else |
61 #define LINK_SPEC "%(link_cpu) -m m32relf_linux %{shared:-shared} \ | |
62 %{!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
|
63 %{!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
|
64 %{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
|
65 -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
|
66 %{static:-static}}" |
0 | 67 #endif |
68 | |
69 #undef LIB_SPEC | |
70 #define LIB_SPEC \ | |
71 "%{pthread:-lpthread} \ | |
72 %{shared: -lc} \ | |
73 %{!shared: \ | |
74 %{mieee-fp:-lieee} \ | |
75 %{profile:-lc_p} %{!profile: -lc}}" | |
76 | |
77 #undef STARTFILE_SPEC | |
78 #if defined HAVE_LD_PIE | |
79 #define STARTFILE_SPEC \ | |
80 "%{!shared: %{pg|p|profile:gcrt1.o%s;pie:Scrt1.o%s;:crt1.o%s}} \ | |
81 crti.o%s %{static:crtbeginT.o%s;shared|pie:crtbeginS.o%s;:crtbegin.o%s}" | |
82 #else | |
83 #define STARTFILE_SPEC \ | |
84 "%{!shared: \ | |
85 %{pg:gcrt1.o%s} %{!pg:%{p:gcrt1.o%s} %{!p:crt1.o%s}}}\ | |
86 crti.o%s %{!shared:crtbegin.o%s} %{shared:crtbeginS.o%s}" | |
87 #endif | |
88 | |
89 #undef ENDFILE_SPEC | |
90 #define ENDFILE_SPEC \ | |
91 "%{shared|pie:crtendS.o%s;:crtend.o%s} crtn.o%s" | |
92 | |
93 #undef SUBTARGET_CPP_SPEC | |
94 #define SUBTARGET_CPP_SPEC "\ | |
95 %{posix:-D_POSIX_SOURCE} \ | |
96 %{pthread:-D_REENTRANT -D_PTHREADS} \ | |
97 " | |
98 | |
99 #define TARGET_OS_CPP_BUILTINS() LINUX_TARGET_OS_CPP_BUILTINS() | |
100 | |
101 #define TARGET_ASM_FILE_END file_end_indicate_exec_stack |