FSF GCC merge 02/23/03
[official-gcc.git] / gcc / config / sparc / elf.h
blobd2d3a0b74d368ec9b67c8833bc3242881b61a43b
1 /* Definitions of target machine for GNU compiler,
2 for SPARC running in an embedded environment using the ELF file format.
3 Copyright (C) 1997 Free Software Foundation, Inc.
5 This file is part of GNU CC.
7 GNU CC 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 2, or (at your option)
10 any later version.
12 GNU CC 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 GNU CC; see the file COPYING. If not, write to
19 the Free Software Foundation, 59 Temple Place - Suite 330,
20 Boston, MA 02111-1307, USA. */
22 #undef CPP_PREDEFINES
23 #define CPP_PREDEFINES "-Dsparc -D__elf__"
25 #undef STARTFILE_SPEC
26 #define STARTFILE_SPEC "crt0.o%s crti.o%s crtbegin.o%s"
28 #undef ENDFILE_SPEC
29 #define ENDFILE_SPEC \
30 "%{ffast-math|funsafe-math-optimizations:crtfastmath.o%s} \
31 crtend.o%s crtn.o%s"
33 /* Use the default. */
34 #undef LINK_SPEC
36 /* Don't set the target flags, this is done by the linker script */
37 #undef LIB_SPEC
38 #define LIB_SPEC ""
40 /* FIXME: until fixed */
41 #undef LONG_DOUBLE_TYPE_SIZE
42 #define LONG_DOUBLE_TYPE_SIZE 64
44 /* This solaris2 define does not apply. */
45 #undef STDC_0_IN_SYSTEM_HEADERS
47 /* We don't want to use the Solaris2 specific long long int conversion
48 routines. */
49 #undef INIT_SUBTARGET_OPTABS
50 #define INIT_SUBTARGET_OPTABS
52 /* ??? We haven't added Solaris2 equivalent 64 bit library routines to
53 lb1sp*.asm, so we need to avoid using them. */
54 #undef MULDI3_LIBCALL
55 #undef DIVDI3_LIBCALL
56 #undef UDIVDI3_LIBCALL
57 #undef MODDI3_LIBCALL
58 #undef UMODDI3_LIBCALL