Mercurial > hg > CbC > CbC_gcc
annotate gcc/config/vxworksae.h @ 138:fc828634a951
merge
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 08 Nov 2018 14:17:14 +0900 |
parents | 84e7813d76e9 |
children | 1830386684a0 |
rev | line source |
---|---|
0 | 1 /* Common VxWorks AE target definitions for GNU compiler. |
131 | 2 Copyright (C) 2004-2018 Free Software Foundation, Inc. |
0 | 3 Contributed by CodeSourcery, LLC. |
4 | |
5 This file is part of GCC. | |
6 | |
7 GCC is free software; you can redistribute it and/or modify it under | |
8 the terms of the GNU General Public License as published by the Free | |
9 Software Foundation; either version 3, or (at your option) any later | |
10 version. | |
11 | |
12 GCC is distributed in the hope that it will be useful, but WITHOUT ANY | |
13 WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
15 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 /* This header should be included after including vx-common.h. */ | |
22 | |
23 /* Most of the definitions below this point are versions of the | |
24 vxworks.h definitions, without the -mrtp bits. */ | |
25 | |
111 | 26 /* Resolve subdirectory of VxWorks AE target headers. */ |
27 #define VXWORKSAE_TARGET_DIR(SUBDIR) "%:getenv(WIND_BASE /target" SUBDIR ")" | |
0 | 28 |
29 /* Include target/vThreads/h or target/h (depending on the compilation | |
30 mode), and then target/val/h (in either mode). The macros defined | |
31 are in the user's namespace, but the VxWorks headers require | |
32 them. */ | |
33 #undef VXWORKS_ADDITIONAL_CPP_SPEC | |
34 #define VXWORKS_ADDITIONAL_CPP_SPEC " \ | |
35 %{!nostdinc:%{isystem*}} \ | |
36 %{mvthreads:-DVTHREADS=1 \ | |
111 | 37 %{!nostdinc:-isystem " VXWORKSAE_TARGET_DIR("/vThreads/h") "}} \ |
0 | 38 %{!mvthreads:-DAE653_BUILD=1 \ |
111 | 39 %{!nostdinc:-isystem " VXWORKSAE_TARGET_DIR("/h") "}} \ |
40 %{!nostdinc:-isystem " VXWORKSAE_TARGET_DIR("/val/h") "}" | |
0 | 41 |
42 #undef VXWORKS_LIB_SPEC | |
43 #define VXWORKS_LIB_SPEC "" | |
44 | |
45 #undef VXWORKS_LINK_SPEC | |
46 #define VXWORKS_LINK_SPEC \ | |
47 "-r %{v:-V}" | |
48 | |
49 #undef VXWORKS_LIBGCC_SPEC | |
50 #define VXWORKS_LIBGCC_SPEC \ | |
51 "-lgcc" | |
52 | |
53 #undef VXWORKS_STARTFILE_SPEC | |
54 #define VXWORKS_STARTFILE_SPEC "" | |
55 | |
56 #define VXWORKS_KIND VXWORKS_KIND_AE | |
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 |
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 /* Both kernels and RTPs have the facilities required by this macro. */ |
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 #define TARGET_POSIX_IO |
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 |
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
|
61 /* A VxWorks 653 implementation of TARGET_OS_CPP_BUILTINS. */ |
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
|
62 #define VXWORKS_OS_CPP_BUILTINS() \ |
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 do \ |
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 { \ |
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 builtin_define ("__vxworks"); \ |
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 builtin_define ("__VXWORKS__"); \ |
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 } \ |
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 while (0) |
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 |
111 | 70 /* Do VxWorks-specific parts of TARGET_OPTION_OVERRIDE. */ |
71 | |
72 /* None of the VxWorks AE/653/MILS ports to date has native TLS support. */ | |
73 #define VXWORKS_HAVE_TLS 0 | |
74 | |
75 #undef VXWORKS_OVERRIDE_OPTIONS | |
76 #define VXWORKS_OVERRIDE_OPTIONS vxworks_override_options () | |
77 extern void vxworks_override_options (void); | |
131 | 78 |
79 /* Default dwarf control values, for non-gdb debuggers that come with | |
80 VxWorks. */ | |
81 | |
82 #undef VXWORKS_DWARF_VERSION_DEFAULT | |
83 #define VXWORKS_DWARF_VERSION_DEFAULT 2 | |
84 | |
85 #undef DWARF_GNAT_ENCODINGS_DEFAULT | |
86 #define DWARF_GNAT_ENCODINGS_DEFAULT DWARF_GNAT_ENCODINGS_ALL |