lynx.h revision 132718
1/* Definitions for Intel 386 running LynxOS.
2   Copyright (C) 1993, 1995, 1996, 2002 Free Software Foundation, Inc.
3
4This file is part of GCC.
5
6GCC is free software; you can redistribute it and/or modify
7it under the terms of the GNU General Public License as published by
8the Free Software Foundation; either version 2, or (at your option)
9any later version.
10
11GCC is distributed in the hope that it will be useful,
12but WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14GNU General Public License for more details.
15
16You should have received a copy of the GNU General Public License
17along with GCC; see the file COPYING.  If not, write to
18the Free Software Foundation, 59 Temple Place - Suite 330,
19Boston, MA 02111-1307, USA.  */
20
21#define TARGET_VERSION fprintf (stderr, " (80386, LYNX BSD syntax)");
22
23#define TARGET_OS_CPP_BUILTINS()		\
24  do						\
25    {						\
26	builtin_define_std ("I386");		\
27	builtin_define_std ("Lynx");		\
28	builtin_define_std ("IBITS32");		\
29	builtin_assert ("system=unix");		\
30	builtin_assert ("system=lynx");		\
31    }						\
32  while (0)
33
34/* The prefix to add to user-visible assembler symbols.  */
35
36/* Override the svr3 convention of adding a leading underscore.  */
37
38#undef USER_LABEL_PREFIX
39#define USER_LABEL_PREFIX ""
40
41/* Apparently LynxOS clobbers ebx when you call into the OS.  */
42
43#undef CALL_USED_REGISTERS
44#define CALL_USED_REGISTERS \
45/*ax,dx,cx,bx,si,di,bp,sp,st,st1,st2,st3,st4,st5,st6,st7,arg*/ \
46{  1, 1, 1, 1, 0, 0, 0, 1, 1,  1,  1,  1,  1,  1,  1,  1,  1 }
47
48/* Prefix for internally generated assembler labels.  If we aren't using
49   underscores, we are using prefix `.'s to identify labels that should
50   be ignored, as in `i386/gas.h' --karl@cs.umb.edu  */
51
52#undef  LPREFIX
53#define LPREFIX ".L"
54
55/* The prefix to add to user-visible assembler symbols.  */
56
57#undef  USER_LABEL_PREFIX
58#define USER_LABEL_PREFIX ""
59
60/* If user-symbols don't have underscores,
61   then it must take more than `L' to identify
62   a label that should be ignored.  */
63
64/* This is how to store into the string BUF
65   the symbol_ref name of an internal numbered label where
66   PREFIX is the class of label and NUM is the number within the class.
67   This is suitable for output with `assemble_name'.  */
68
69#undef  ASM_GENERATE_INTERNAL_LABEL
70#define ASM_GENERATE_INTERNAL_LABEL(BUF,PREFIX,NUMBER)	\
71  sprintf ((BUF), ".%s%ld", (PREFIX), (long)(NUMBER))
72