xref: /openbsd/gnu/usr.bin/gcc/gcc/config/i386/lynx.h (revision c87b03e5)
1*c87b03e5Sespie /* Definitions for Intel 386 running LynxOS.
2*c87b03e5Sespie    Copyright (C) 1993, 1995, 1996, 2002 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 #define TARGET_VERSION fprintf (stderr, " (80386, LYNX BSD syntax)");
22*c87b03e5Sespie 
23*c87b03e5Sespie #define TARGET_OS_CPP_BUILTINS()		\
24*c87b03e5Sespie   do						\
25*c87b03e5Sespie     {						\
26*c87b03e5Sespie 	builtin_define_std ("I386");		\
27*c87b03e5Sespie 	builtin_define_std ("Lynx");		\
28*c87b03e5Sespie 	builtin_define_std ("IBITS32");		\
29*c87b03e5Sespie 	builtin_assert ("system=unix");		\
30*c87b03e5Sespie 	builtin_assert ("system=lynx");		\
31*c87b03e5Sespie     }						\
32*c87b03e5Sespie   while (0)
33*c87b03e5Sespie 
34*c87b03e5Sespie /* The prefix to add to user-visible assembler symbols.  */
35*c87b03e5Sespie 
36*c87b03e5Sespie /* Override the svr3 convention of adding a leading underscore.  */
37*c87b03e5Sespie 
38*c87b03e5Sespie #undef USER_LABEL_PREFIX
39*c87b03e5Sespie #define USER_LABEL_PREFIX ""
40*c87b03e5Sespie 
41*c87b03e5Sespie /* Apparently LynxOS clobbers ebx when you call into the OS.  */
42*c87b03e5Sespie 
43*c87b03e5Sespie #undef CALL_USED_REGISTERS
44*c87b03e5Sespie #define CALL_USED_REGISTERS \
45*c87b03e5Sespie /*ax,dx,cx,bx,si,di,bp,sp,st,st1,st2,st3,st4,st5,st6,st7,arg*/ \
46*c87b03e5Sespie {  1, 1, 1, 1, 0, 0, 0, 1, 1,  1,  1,  1,  1,  1,  1,  1,  1 }
47*c87b03e5Sespie 
48*c87b03e5Sespie /* Prefix for internally generated assembler labels.  If we aren't using
49*c87b03e5Sespie    underscores, we are using prefix `.'s to identify labels that should
50*c87b03e5Sespie    be ignored, as in `i386/gas.h' --karl@cs.umb.edu  */
51*c87b03e5Sespie 
52*c87b03e5Sespie #undef  LPREFIX
53*c87b03e5Sespie #define LPREFIX ".L"
54*c87b03e5Sespie 
55*c87b03e5Sespie /* The prefix to add to user-visible assembler symbols.  */
56*c87b03e5Sespie 
57*c87b03e5Sespie #undef  USER_LABEL_PREFIX
58*c87b03e5Sespie #define USER_LABEL_PREFIX ""
59*c87b03e5Sespie 
60*c87b03e5Sespie /* If user-symbols don't have underscores,
61*c87b03e5Sespie    then it must take more than `L' to identify
62*c87b03e5Sespie    a label that should be ignored.  */
63*c87b03e5Sespie 
64*c87b03e5Sespie /* This is how to store into the string BUF
65*c87b03e5Sespie    the symbol_ref name of an internal numbered label where
66*c87b03e5Sespie    PREFIX is the class of label and NUM is the number within the class.
67*c87b03e5Sespie    This is suitable for output with `assemble_name'.  */
68*c87b03e5Sespie 
69*c87b03e5Sespie #undef  ASM_GENERATE_INTERNAL_LABEL
70*c87b03e5Sespie #define ASM_GENERATE_INTERNAL_LABEL(BUF,PREFIX,NUMBER)	\
71*c87b03e5Sespie   sprintf ((BUF), ".%s%ld", (PREFIX), (long)(NUMBER))
72*c87b03e5Sespie 
73*c87b03e5Sespie /* This is how to output an internal numbered label where
74*c87b03e5Sespie    PREFIX is the class of label and NUM is the number within the class.  */
75*c87b03e5Sespie 
76*c87b03e5Sespie #undef  ASM_OUTPUT_INTERNAL_LABEL
77*c87b03e5Sespie #define ASM_OUTPUT_INTERNAL_LABEL(FILE,PREFIX,NUM)	\
78*c87b03e5Sespie   fprintf (FILE, ".%s%d:\n", PREFIX, NUM)
79