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