1 /* Definitions for LynxOS on i386.
2 Copyright (C) 1993, 1995, 1996, 2002, 2004, 2005, 2007, 2010, 2011
3 Free Software Foundation, Inc.
5 This file is part of GCC.
7 GCC is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 3, or (at your option)
12 GCC is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
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/>. */
21 #define TARGET_OS_CPP_BUILTINS() \
24 builtin_define ("__LITTLE_ENDIAN__"); \
25 builtin_define ("__x86__"); \
29 /* The svr4 ABI for the i386 says that records and unions are returned
32 #define DEFAULT_PCC_STRUCT_RETURN 1
34 /* BSS_SECTION_ASM_OP gets defined i386/unix.h. */
36 #define ASM_OUTPUT_ALIGNED_BSS(FILE, DECL, NAME, SIZE, ALIGN) \
37 asm_output_aligned_bss (FILE, DECL, NAME, SIZE, ALIGN)
39 /* LynxOS's GDB counts the floating point registers from 16. */
41 #undef DBX_REGISTER_NUMBER
42 #define DBX_REGISTER_NUMBER(n) \
43 (TARGET_64BIT ? dbx64_register_map[n] \
52 : ((n) >= FIRST_STACK_REG && (n) <= LAST_STACK_REG) ? (int) (n) + 8 \
55 /* A C statement to output to the stdio stream FILE an assembler
56 command to advance the location counter to a multiple of 1<<LOG
57 bytes if it is within MAX_SKIP bytes.
59 This is used to align code labels according to Intel recommendations. */
61 #ifdef HAVE_GAS_MAX_SKIP_P2ALIGN
62 #define ASM_OUTPUT_MAX_SKIP_ALIGN(FILE,LOG,MAX_SKIP) \
65 if ((MAX_SKIP) == 0) fprintf ((FILE), "\t.p2align %d\n", (LOG)); \
66 else fprintf ((FILE), "\t.p2align %d,,%d\n", (LOG), (MAX_SKIP)); \
71 /* Undefine SUBTARGET_EXTRA_SPECS it is empty anyway. We define it in
74 #undef SUBTARGET_EXTRA_SPECS
76 /* Undefine the definition from att.h to enable our default. */
78 #undef ASM_OUTPUT_ALIGN
80 /* Undefine the definition from elfos.h to enable our default. */
82 #undef PREFERRED_DEBUGGING_TYPE
84 /* The file i386.c defines TARGET_HAVE_TLS unconditionally if
85 HAVE_AS_TLS is defined. HAVE_AS_TLS is defined as gas support for
86 TLS is detected by configure. We undefine it here. */