Mercurial > hg > CbC > CbC_gcc
comparison gcc/config/m32r/linux.h @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | f6334be47118 |
children | 84e7813d76e9 |
comparison
equal
deleted
inserted
replaced
68:561a7518be6b | 111:04ced10e8804 |
---|---|
1 /* Definitions for Renesas M32R running Linux-based GNU systems using ELF. | 1 /* Definitions for Renesas M32R running Linux-based GNU systems using ELF. |
2 Copyright (C) 2003, 2004, 2006, 2007, 2010, 2011 | 2 Copyright (C) 2003-2017 Free Software Foundation, Inc. |
3 Free Software Foundation, Inc. | |
4 | 3 |
5 This file is part of GCC. | 4 This file is part of GCC. |
6 | 5 |
7 GCC is free software; you can redistribute it and/or modify it | 6 GCC is free software; you can redistribute it and/or modify it |
8 under the terms of the GNU General Public License as published | 7 under the terms of the GNU General Public License as published |
15 License for more details. | 14 License for more details. |
16 | 15 |
17 You should have received a copy of the GNU General Public License | 16 You should have received a copy of the GNU General Public License |
18 along with GCC; see the file COPYING3. If not see | 17 along with GCC; see the file COPYING3. If not see |
19 <http://www.gnu.org/licenses/>. */ | 18 <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 | 19 |
30 #undef SIZE_TYPE | 20 #undef SIZE_TYPE |
31 #define SIZE_TYPE "unsigned int" | 21 #define SIZE_TYPE "unsigned int" |
32 | 22 |
33 #undef PTRDIFF_TYPE | 23 #undef PTRDIFF_TYPE |
53 #if TARGET_LITTLE_ENDIAN | 43 #if TARGET_LITTLE_ENDIAN |
54 #define LINK_SPEC "%(link_cpu) -m m32rlelf_linux %{shared:-shared} \ | 44 #define LINK_SPEC "%(link_cpu) -m m32rlelf_linux %{shared:-shared} \ |
55 %{!shared: \ | 45 %{!shared: \ |
56 %{!static: \ | 46 %{!static: \ |
57 %{rdynamic:-export-dynamic} \ | 47 %{rdynamic:-export-dynamic} \ |
58 -dynamic-linker " LINUX_DYNAMIC_LINKER "} \ | 48 -dynamic-linker " GNU_USER_DYNAMIC_LINKER "} \ |
59 %{static:-static}}" | 49 %{static:-static}}" |
60 #else | 50 #else |
61 #define LINK_SPEC "%(link_cpu) -m m32relf_linux %{shared:-shared} \ | 51 #define LINK_SPEC "%(link_cpu) -m m32relf_linux %{shared:-shared} \ |
62 %{!shared: \ | 52 %{!shared: \ |
63 %{!static: \ | 53 %{!static: \ |
64 %{rdynamic:-export-dynamic} \ | 54 %{rdynamic:-export-dynamic} \ |
65 -dynamic-linker " LINUX_DYNAMIC_LINKER "} \ | 55 -dynamic-linker " GNU_USER_DYNAMIC_LINKER "} \ |
66 %{static:-static}}" | 56 %{static:-static}}" |
67 #endif | 57 #endif |
68 | 58 |
69 #undef LIB_SPEC | 59 #undef LIB_SPEC |
70 #define LIB_SPEC \ | 60 #define LIB_SPEC \ |
94 #define SUBTARGET_CPP_SPEC "\ | 84 #define SUBTARGET_CPP_SPEC "\ |
95 %{posix:-D_POSIX_SOURCE} \ | 85 %{posix:-D_POSIX_SOURCE} \ |
96 %{pthread:-D_REENTRANT -D_PTHREADS} \ | 86 %{pthread:-D_REENTRANT -D_PTHREADS} \ |
97 " | 87 " |
98 | 88 |
99 #define TARGET_OS_CPP_BUILTINS() LINUX_TARGET_OS_CPP_BUILTINS() | 89 #define TARGET_OS_CPP_BUILTINS() GNU_USER_TARGET_OS_CPP_BUILTINS() |
100 | 90 |
101 #define TARGET_ASM_FILE_END file_end_indicate_exec_stack | 91 #define TARGET_ASM_FILE_END file_end_indicate_exec_stack |