]>
Commit | Line | Data |
---|---|---|
78b02de0 | 1 | /* Definitions for Intel 386 running LynxOS, using Lynx's old as and ld. |
d2307a72 | 2 | Copyright (C) 1993, 1995, 2002 Free Software Foundation, Inc. |
78b02de0 | 3 | |
4 | This file is part of GNU CC. | |
5 | ||
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. | |
10 | ||
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. | |
15 | ||
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 | |
b0603eb3 | 18 | the Free Software Foundation, 59 Temple Place - Suite 330, |
19 | Boston, MA 02111-1307, USA. */ | |
78b02de0 | 20 | |
d2307a72 | 21 | #define TARGET_VERSION fprintf (stderr, " (80386, LYNX BSD syntax)"); |
78b02de0 | 22 | |
e6627095 | 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) | |
78b02de0 | 34 | |
35 | /* Provide required defaults for linker switches. */ | |
36 | ||
37 | #undef LINK_SPEC | |
38 | #define LINK_SPEC "-P1000 %{msystem-v:-V} %{mcoff:-k}" | |
39 | ||
fcacc6ce | 40 | /* Apparently LynxOS clobbers ebx when you call into the OS. */ |
41 | ||
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 } | |
d2307a72 | 46 | |
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 */ | |
50 | ||
51 | #undef LPREFIX | |
52 | #define LPREFIX ".L" | |
53 | ||
54 | /* The prefix to add to user-visible assembler symbols. */ | |
55 | ||
56 | #undef USER_LABEL_PREFIX | |
57 | #define USER_LABEL_PREFIX "" | |
58 | ||
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. */ | |
62 | ||
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'. */ | |
67 | ||
68 | #undef ASM_GENERATE_INTERNAL_LABEL | |
69 | #define ASM_GENERATE_INTERNAL_LABEL(BUF,PREFIX,NUMBER) \ | |
70 | sprintf ((BUF), ".%s%ld", (PREFIX), (long)(NUMBER)) |