FSF GCC merge 02/23/03
[official-gcc.git] / gcc / config / i386 / lynx.h
blobbdbfbe65f0fc7366bd40a80377efea58689d69d7
1 /* Definitions for Intel 386 running LynxOS.
2 Copyright (C) 1993, 1995, 1996, 2002 Free Software Foundation, Inc.
4 This file is part of GNU CC.
6 GNU CC 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 2, or (at your option)
9 any later version.
11 GNU CC 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 GNU CC; see the file COPYING. If not, write to
18 the Free Software Foundation, 59 Temple Place - Suite 330,
19 Boston, MA 02111-1307, USA. */
21 #define TARGET_VERSION fprintf (stderr, " (80386, LYNX BSD syntax)");
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)
34 /* The prefix to add to user-visible assembler symbols. */
36 /* Override the svr3 convention of adding a leading underscore. */
38 #undef USER_LABEL_PREFIX
39 #define USER_LABEL_PREFIX ""
41 /* Apparently LynxOS clobbers ebx when you call into the OS. */
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 }
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 */
52 #undef LPREFIX
53 #define LPREFIX ".L"
55 /* The prefix to add to user-visible assembler symbols. */
57 #undef USER_LABEL_PREFIX
58 #define USER_LABEL_PREFIX ""
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. */
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'. */
69 #undef ASM_GENERATE_INTERNAL_LABEL
70 #define ASM_GENERATE_INTERNAL_LABEL(BUF,PREFIX,NUMBER) \
71 sprintf ((BUF), ".%s%ld", (PREFIX), (long)(NUMBER))