Commit | Line | Data |
---|---|---|
af359dea C |
1 | /*- |
2 | * This code is derived from software copyrighted by the Free Software | |
3 | * Foundation. | |
4 | * | |
5 | * Modified 1991 by Donn Seeley at UUNET Technologies, Inc. | |
6 | * | |
7 | * @(#)tm-i386b.h 6.2 (Berkeley) 5/8/91 | |
8 | */ | |
9 | ||
10 | /* Definitions for BSD Intel 386; derived from tm-seq386.h. | |
11 | Copyright (C) 1988 Free Software Foundation, Inc. | |
12 | ||
13 | This file is part of GNU CC. | |
14 | ||
15 | GNU CC is free software; you can redistribute it and/or modify | |
16 | it under the terms of the GNU General Public License as published by | |
17 | the Free Software Foundation; either version 1, or (at your option) | |
18 | any later version. | |
19 | ||
20 | GNU CC is distributed in the hope that it will be useful, | |
21 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
22 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
23 | GNU General Public License for more details. | |
24 | ||
25 | You should have received a copy of the GNU General Public License | |
26 | along with GNU CC; see the file COPYING. If not, write to | |
27 | the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ | |
28 | ||
29 | #include "tm-i386.h" | |
30 | ||
31 | /* Use the BSD assembler syntax. */ | |
32 | ||
33 | #include "tm-bsd386.h" | |
34 | ||
35 | /* By default, target has a 80387. */ | |
36 | ||
37 | #define TARGET_DEFAULT 1 | |
38 | ||
39 | /* Specify predefined symbols in preprocessor. */ | |
40 | ||
41 | #define CPP_PREDEFINES "-Dunix -Di386 -Di386b" | |
42 | ||
43 | /* Don't permit / as a comment start character. */ | |
44 | ||
45 | #undef COMMENT_BEGIN | |
46 | #define COMMENT_BEGIN "#" | |
47 | ||
48 | #undef ASM_APP_ON | |
49 | #define ASM_APP_ON "#APP\n" | |
50 | ||
51 | #undef ASM_APP_OFF | |
52 | #define ASM_APP_OFF "#NO_APP\n" | |
53 | ||
54 | #undef ASM_FILE_START | |
55 | #define ASM_FILE_START(FILE) fprintf (FILE, "#NO_APP\n"); | |
56 | ||
57 | /* We want to output DBX debugging information. */ | |
58 | ||
59 | #define DBX_DEBUGGING_INFO | |
60 | #undef DBX_NO_XREFS | |
61 | #undef DBX_CONTIN_LENGTH | |
62 | ||
63 | /* Floating-point return values come in the FP register. */ | |
64 | ||
65 | #define VALUE_REGNO(MODE) \ | |
66 | (((MODE)==SFmode || (MODE)==DFmode) ? FIRST_FLOAT_REG : 0) | |
67 | ||
68 | /* 1 if N is a possible register number for a function value. */ | |
69 | ||
70 | #define FUNCTION_VALUE_REGNO_P(N) ((N) == 0 || (N)== FIRST_FLOAT_REG) | |
71 | ||
72 | /* Output assembler code to FILE to increment profiler label # LABELNO | |
73 | for profiling a function entry. */ | |
74 | ||
75 | #undef FUNCTION_PROFILER | |
76 | #define FUNCTION_PROFILER(FILE, LABELNO) \ | |
77 | fprintf (FILE, "\tmovl $LP%d,%%eax\n\tcall mcount\n", (LABELNO)); |