]>
git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/config/i386/lynx.h
1 /* Definitions for LynxOS on i386.
2 Copyright (C) 1993-2023 Free Software Foundation, Inc.
4 This file is part of GCC.
6 GCC is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 3, or (at your option)
11 GCC is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with GCC; see the file COPYING3. If not see
18 <http://www.gnu.org/licenses/>. */
20 #define TARGET_OS_CPP_BUILTINS() \
23 builtin_define ("__LITTLE_ENDIAN__"); \
24 builtin_define ("__x86__"); \
28 /* The svr4 ABI for the i386 says that records and unions are returned
31 #define DEFAULT_PCC_STRUCT_RETURN 1
33 /* BSS_SECTION_ASM_OP gets defined i386/unix.h. */
35 #define ASM_OUTPUT_ALIGNED_BSS(FILE, DECL, NAME, SIZE, ALIGN) \
36 asm_output_aligned_bss (FILE, DECL, NAME, SIZE, ALIGN)
38 /* LynxOS's GDB counts the floating point registers from 16. */
41 #define DEBUGGER_REGNO(n) \
42 (TARGET_64BIT ? debugger64_register_map[n] \
51 : ((n) >= FIRST_STACK_REG && (n) <= LAST_STACK_REG) ? (int) (n) + 8 \
54 /* Undefine SUBTARGET_EXTRA_SPECS it is empty anyway. We define it in
57 #undef SUBTARGET_EXTRA_SPECS
59 /* Undefine the definition from att.h to enable our default. */
61 #undef ASM_OUTPUT_ALIGN
63 /* The file i386.cc defines TARGET_HAVE_TLS unconditionally if
64 HAVE_AS_TLS is defined. HAVE_AS_TLS is defined as gas support for
65 TLS is detected by configure. We undefine it here. */