xref: /openbsd/gnu/usr.bin/gcc/gcc/config/sparc/lynx.h (revision c87b03e5)
1*c87b03e5Sespie /* Definitions for SPARC running LynxOS.
2*c87b03e5Sespie    Copyright (C) 1993, 1995, 1996, 2000 Free Software Foundation, Inc.
3*c87b03e5Sespie 
4*c87b03e5Sespie This file is part of GNU CC.
5*c87b03e5Sespie 
6*c87b03e5Sespie GNU CC is free software; you can redistribute it and/or modify
7*c87b03e5Sespie it under the terms of the GNU General Public License as published by
8*c87b03e5Sespie the Free Software Foundation; either version 2, or (at your option)
9*c87b03e5Sespie any later version.
10*c87b03e5Sespie 
11*c87b03e5Sespie GNU CC is distributed in the hope that it will be useful,
12*c87b03e5Sespie but WITHOUT ANY WARRANTY; without even the implied warranty of
13*c87b03e5Sespie MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14*c87b03e5Sespie GNU General Public License for more details.
15*c87b03e5Sespie 
16*c87b03e5Sespie You should have received a copy of the GNU General Public License
17*c87b03e5Sespie along with GNU CC; see the file COPYING.  If not, write to
18*c87b03e5Sespie the Free Software Foundation, 59 Temple Place - Suite 330,
19*c87b03e5Sespie Boston, MA 02111-1307, USA.  */
20*c87b03e5Sespie 
21*c87b03e5Sespie #undef ASM_OUTPUT_IDENT
22*c87b03e5Sespie 
23*c87b03e5Sespie #define BSS_SECTION_ASM_OP	"\t.section\t\".bss\""
24*c87b03e5Sespie 
25*c87b03e5Sespie /* ??? Must redefine to get sparclite and v8 defines.  Can this be done
26*c87b03e5Sespie    differently?  */
27*c87b03e5Sespie 
28*c87b03e5Sespie #undef CPP_SPEC
29*c87b03e5Sespie #define CPP_SPEC "%{mthreads:-D_MULTITHREADED}  \
30*c87b03e5Sespie   %{mposix:-D_POSIX_SOURCE}  \
31*c87b03e5Sespie   %{msystem-v:-I/usr/include_v}  \
32*c87b03e5Sespie   %(cpp_cpu)"
33*c87b03e5Sespie 
34*c87b03e5Sespie /* Names to predefine in the preprocessor for this target machine.  */
35*c87b03e5Sespie 
36*c87b03e5Sespie #undef CPP_PREDEFINES
37*c87b03e5Sespie #define CPP_PREDEFINES "-Dunix -Dsparc -DSPARC -DLynx -DLYNX -DIBITS32 -Asystem=unix -Asystem=lynx -Acpu=sparc -Amachine=sparc"
38*c87b03e5Sespie 
39*c87b03e5Sespie #undef LINK_SPEC
40*c87b03e5Sespie 
41*c87b03e5Sespie /* SPARC version of libc.a has references to libm.a (printf calls pow for
42*c87b03e5Sespie    instance), so we must always link both.  */
43*c87b03e5Sespie 
44*c87b03e5Sespie #undef LIB_SPEC
45*c87b03e5Sespie #define LIB_SPEC "%{mthreads:-L/lib/thread/}  \
46*c87b03e5Sespie   %{msystem-v:-lc_v -lm_v -lc_v}  \
47*c87b03e5Sespie   %{!msystem-v:%{mposix:-lc_p} -lc -lm -lc}"
48