Commit | Line | Data |
---|---|---|
15637ed4 RG |
1 | /* Definitions for BSD Intel 386; derived from tm-seq386.h. |
2 | Copyright (C) 1988 Free Software Foundation, Inc. | |
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 1, 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 | |
18 | the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ | |
19 | ||
20 | #include "tm-i386.h" | |
21 | ||
22 | /* Use the BSD assembler syntax. */ | |
23 | ||
24 | #include "tm-bsd386.h" | |
25 | ||
26 | /* By default, target has a 80387. */ | |
27 | ||
28 | #define TARGET_DEFAULT 1 | |
29 | ||
30 | /* Specify predefined symbols in preprocessor. */ | |
31 | ||
32 | #define CPP_PREDEFINES "-Dunix -Di386 -Di386b" | |
33 | ||
34 | /* Don't permit / as a comment start character. */ | |
35 | ||
36 | #undef COMMENT_BEGIN | |
37 | #define COMMENT_BEGIN "#" | |
38 | ||
39 | #undef ASM_APP_ON | |
40 | #define ASM_APP_ON "#APP\n" | |
41 | ||
42 | #undef ASM_APP_OFF | |
43 | #define ASM_APP_OFF "#NO_APP\n" | |
44 | ||
45 | #undef ASM_FILE_START | |
46 | #define ASM_FILE_START(FILE) fprintf (FILE, "#NO_APP\n"); | |
47 | ||
48 | /* We want to output DBX debugging information. */ | |
49 | ||
50 | #define DBX_DEBUGGING_INFO | |
51 | #undef DBX_NO_XREFS | |
52 | #undef DBX_CONTIN_LENGTH | |
53 | ||
54 | /* Don't put floating point numbers in general registers -- there | |
55 | are no fp-to-general register moves, and we run out of registers. */ | |
56 | ||
57 | #undef HARD_REGNO_MODE_OK | |
58 | #define HARD_REGNO_MODE_OK(REGNO, MODE) \ | |
59 | (MODE == DFmode || MODE == SFmode ? REGNO >= 8 \ | |
60 | : MODE == QImode ? REGNO < 4 : REGNO < 8) | |
61 | ||
62 | /* Floating-point return values come in the FP register. */ | |
63 | ||
64 | #define VALUE_REGNO(MODE) \ | |
65 | (((MODE)==SFmode || (MODE)==DFmode) ? FIRST_FLOAT_REG : 0) | |
66 | ||
67 | /* 1 if N is a possible register number for a function value. */ | |
68 | ||
69 | #define FUNCTION_VALUE_REGNO_P(N) ((N) == 0 || (N)== FIRST_FLOAT_REG) | |
70 | ||
71 | /* Output assembler code to FILE to increment profiler label # LABELNO | |
72 | for profiling a function entry. */ | |
73 | ||
74 | #undef FUNCTION_PROFILER | |
75 | #define FUNCTION_PROFILER(FILE, LABELNO) \ | |
76 | fprintf (FILE, "\tmovl $LP%d,%%eax\n\tcall mcount\n", (LABELNO)); |