annotate gcc/config/powerpcspe/lynx.h @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* Definitions for Rs6000 running LynxOS.
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
2 Copyright (C) 1995-2018 Free Software Foundation, Inc.
111
kono
parents:
diff changeset
3 Contributed by David Henkel-Wallace, Cygnus Support (gumby@cygnus.com)
kono
parents:
diff changeset
4 Rewritten by Adam Nemet, LynuxWorks Inc.
kono
parents:
diff changeset
5
kono
parents:
diff changeset
6 This file is part of GCC.
kono
parents:
diff changeset
7
kono
parents:
diff changeset
8 GCC is free software; you can redistribute it and/or modify it
kono
parents:
diff changeset
9 under the terms of the GNU General Public License as published
kono
parents:
diff changeset
10 by the Free Software Foundation; either version 3, or (at your
kono
parents:
diff changeset
11 option) any later version.
kono
parents:
diff changeset
12
kono
parents:
diff changeset
13 GCC is distributed in the hope that it will be useful, but WITHOUT
kono
parents:
diff changeset
14 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
kono
parents:
diff changeset
15 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
kono
parents:
diff changeset
16 License for more details.
kono
parents:
diff changeset
17
kono
parents:
diff changeset
18 You should have received a copy of the GNU General Public License
kono
parents:
diff changeset
19 along with GCC; see the file COPYING3. If not see
kono
parents:
diff changeset
20 <http://www.gnu.org/licenses/>. */
kono
parents:
diff changeset
21
kono
parents:
diff changeset
22 /* Undefine the definition to enable the LynxOS default from the
kono
parents:
diff changeset
23 top-level lynx.h. */
kono
parents:
diff changeset
24
kono
parents:
diff changeset
25 #undef SUBTARGET_EXTRA_SPECS
kono
parents:
diff changeset
26
kono
parents:
diff changeset
27 /* Get rid off the spec definitions from rs6000/sysv4.h. */
kono
parents:
diff changeset
28
kono
parents:
diff changeset
29 #undef CPP_SPEC
kono
parents:
diff changeset
30 #define CPP_SPEC \
kono
parents:
diff changeset
31 "%{msoft-float: -D_SOFT_FLOAT} \
kono
parents:
diff changeset
32 %(cpp_cpu) \
kono
parents:
diff changeset
33 %(cpp_os_lynx)"
kono
parents:
diff changeset
34
kono
parents:
diff changeset
35 /* LynxOS only supports big-endian on PPC so we override the
kono
parents:
diff changeset
36 definition from sysv4.h. Since the LynxOS 4.0 compiler was set to
kono
parents:
diff changeset
37 return every structure in memory regardless of their size we have
kono
parents:
diff changeset
38 to emulate the same behavior here with disabling the SVR4 structure
kono
parents:
diff changeset
39 returning. */
kono
parents:
diff changeset
40
kono
parents:
diff changeset
41 #undef CC1_SPEC
kono
parents:
diff changeset
42 #define CC1_SPEC \
kono
parents:
diff changeset
43 "%{G*} %{mno-sdata:-msdata=none} \
kono
parents:
diff changeset
44 %{maltivec:-mabi=altivec} \
kono
parents:
diff changeset
45 -maix-struct-return"
kono
parents:
diff changeset
46
kono
parents:
diff changeset
47 #undef ASM_SPEC
kono
parents:
diff changeset
48 #define ASM_SPEC \
kono
parents:
diff changeset
49 "%(asm_cpu) \
kono
parents:
diff changeset
50 %{,assembler|,assembler-with-cpp: %{mregnames} %{mno-regnames}}"
kono
parents:
diff changeset
51
kono
parents:
diff changeset
52 #undef STARTFILE_SPEC
kono
parents:
diff changeset
53 #undef ENDFILE_SPEC
kono
parents:
diff changeset
54 #undef LIB_SPEC
kono
parents:
diff changeset
55 #undef LINK_SPEC
kono
parents:
diff changeset
56 #define LINK_SPEC \
kono
parents:
diff changeset
57 "%{!msdata=none:%{G*}} %{msdata=none:-G0} \
kono
parents:
diff changeset
58 %(link_os_lynx)"
kono
parents:
diff changeset
59
kono
parents:
diff changeset
60 /* Override the definition from sysv4.h. */
kono
parents:
diff changeset
61
kono
parents:
diff changeset
62 #undef TARGET_OS_CPP_BUILTINS
kono
parents:
diff changeset
63 #define TARGET_OS_CPP_BUILTINS() \
kono
parents:
diff changeset
64 do \
kono
parents:
diff changeset
65 { \
kono
parents:
diff changeset
66 builtin_define ("__BIG_ENDIAN__"); \
kono
parents:
diff changeset
67 builtin_define ("__powerpc__"); \
kono
parents:
diff changeset
68 builtin_assert ("cpu=powerpc"); \
kono
parents:
diff changeset
69 builtin_assert ("machine=powerpc"); \
kono
parents:
diff changeset
70 builtin_define ("__PPC__"); \
kono
parents:
diff changeset
71 } \
kono
parents:
diff changeset
72 while (0)
kono
parents:
diff changeset
73
kono
parents:
diff changeset
74 /* Override the rs6000.h definition. */
kono
parents:
diff changeset
75
kono
parents:
diff changeset
76 #undef ASM_APP_ON
kono
parents:
diff changeset
77 #define ASM_APP_ON "#APP\n"
kono
parents:
diff changeset
78
kono
parents:
diff changeset
79 /* Override the rs6000.h definition. */
kono
parents:
diff changeset
80
kono
parents:
diff changeset
81 #undef ASM_APP_OFF
kono
parents:
diff changeset
82 #define ASM_APP_OFF "#NO_APP\n"
kono
parents:
diff changeset
83
kono
parents:
diff changeset
84 /* LynxOS does not do anything with .fixup plus let's not create
kono
parents:
diff changeset
85 writable section for linkonce.r and linkonce.t. */
kono
parents:
diff changeset
86
kono
parents:
diff changeset
87 #undef RELOCATABLE_NEEDS_FIXUP
kono
parents:
diff changeset
88
kono
parents:
diff changeset
89 /* Override these from rs6000.h with the generic definition. */
kono
parents:
diff changeset
90
kono
parents:
diff changeset
91 #undef SIZE_TYPE
kono
parents:
diff changeset
92 #undef ASM_OUTPUT_ALIGN
kono
parents:
diff changeset
93 #undef PREFERRED_DEBUGGING_TYPE
kono
parents:
diff changeset
94
kono
parents:
diff changeset
95 /* The file rs6000.c defines TARGET_HAVE_TLS unconditionally to the
kono
parents:
diff changeset
96 value of HAVE_AS_TLS. HAVE_AS_TLS is true as gas support for TLS
kono
parents:
diff changeset
97 is detected by configure. Override the definition to false. */
kono
parents:
diff changeset
98
kono
parents:
diff changeset
99 #undef HAVE_AS_TLS
kono
parents:
diff changeset
100 #define HAVE_AS_TLS 0
kono
parents:
diff changeset
101
kono
parents:
diff changeset
102 /* Use standard DWARF numbering for DWARF debugging information. */
kono
parents:
diff changeset
103 #define RS6000_USE_DWARF_NUMBERING
kono
parents:
diff changeset
104
kono
parents:
diff changeset
105 #ifdef CRT_BEGIN
kono
parents:
diff changeset
106 /* This function is part of crtbegin*.o which is at the beginning of
kono
parents:
diff changeset
107 the link and is called from .fini which is usually toward the end
kono
parents:
diff changeset
108 of the executable. Make it longcall so that we don't limit the
kono
parents:
diff changeset
109 text size of the executables to 32M. */
kono
parents:
diff changeset
110
kono
parents:
diff changeset
111 static void __do_global_dtors_aux (void) __attribute__ ((longcall));
kono
parents:
diff changeset
112 #endif /* CRT_BEGIN */
kono
parents:
diff changeset
113
kono
parents:
diff changeset
114 #ifdef CRT_END
kono
parents:
diff changeset
115 /* Similarly here. This function resides in crtend*.o which is toward
kono
parents:
diff changeset
116 to end of the link and is called from .init which is at the
kono
parents:
diff changeset
117 beginning. */
kono
parents:
diff changeset
118
kono
parents:
diff changeset
119 static void __do_global_ctors_aux (void) __attribute__ ((longcall));
kono
parents:
diff changeset
120 #endif /* CRT_END */