FSF GCC merge 02/23/03
[official-gcc.git] / gcc / config / i386 / lynx-ng.h
blob8d41add6cee59fe04b7382b0367a9c1f588e3fbf
1 /* Definitions for Intel 386 running LynxOS, using Lynx's old as and ld.
2 Copyright (C) 1993, 1995, 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 ("unix"); \
27 builtin_define_std ("I386"); \
28 builtin_define_std ("Lynx"); \
29 builtin_define_std ("IBITS32"); \
30 builtin_assert ("system=unix"); \
31 builtin_assert ("system=lynx"); \
32 } \
33 while (0)
35 /* Provide required defaults for linker switches. */
37 #undef LINK_SPEC
38 #define LINK_SPEC "-P1000 %{msystem-v:-V} %{mcoff:-k}"
40 /* Apparently LynxOS clobbers ebx when you call into the OS. */
42 #undef CALL_USED_REGISTERS
43 #define CALL_USED_REGISTERS \
44 /*ax,dx,cx,bx,si,di,bp,sp,st,st1,st2,st3,st4,st5,st6,st7,arg*/ \
45 { 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 }
47 /* Prefix for internally generated assembler labels. If we aren't using
48 underscores, we are using prefix `.'s to identify labels that should
49 be ignored, as in `i386/gas.h' --karl@cs.umb.edu */
51 #undef LPREFIX
52 #define LPREFIX ".L"
54 /* The prefix to add to user-visible assembler symbols. */
56 #undef USER_LABEL_PREFIX
57 #define USER_LABEL_PREFIX ""
59 /* If user-symbols don't have underscores,
60 then it must take more than `L' to identify
61 a label that should be ignored. */
63 /* This is how to store into the string BUF
64 the symbol_ref name of an internal numbered label where
65 PREFIX is the class of label and NUM is the number within the class.
66 This is suitable for output with `assemble_name'. */
68 #undef ASM_GENERATE_INTERNAL_LABEL
69 #define ASM_GENERATE_INTERNAL_LABEL(BUF,PREFIX,NUMBER) \
70 sprintf ((BUF), ".%s%ld", (PREFIX), (long)(NUMBER))