]>
Commit | Line | Data |
---|---|---|
17fd0700 RS |
1 | /* Target definitions for GNU compiler for Sparc running System V.4 |
2 | Copyright (C) 1991 Free Software Foundation, Inc. | |
3 | ||
4 | Written by Ron Guilmette (rfg@ncd.com). | |
5 | ||
6 | This file is part of GNU CC. | |
7 | ||
8 | GNU CC is free software; you can redistribute it and/or modify | |
9 | it under the terms of the GNU General Public License as published by | |
10 | the Free Software Foundation; either version 2, or (at your option) | |
11 | any later version. | |
12 | ||
13 | GNU CC is distributed in the hope that it will be useful, | |
14 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
16 | GNU General Public License for more details. | |
17 | ||
18 | You should have received a copy of the GNU General Public License | |
19 | along with GNU CC; see the file COPYING. If not, write to | |
20 | the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ | |
21 | ||
22 | #include "sparc.h" | |
23 | #include "svr4.h" | |
24 | ||
25 | /* Provide a set of pre-definitions and pre-assertions appropriate for | |
26 | the sparc running svr4. __svr4__ is our extension. */ | |
27 | ||
28 | #define CPP_PREDEFINES \ | |
29 | "-Dsparc -Dunix -D__svr4__ -Asystem(unix) -Acpu(sparc) -Amachine(sparc)" | |
30 | ||
31 | #define ASM_COMMENT_START "!" | |
32 | ||
33 | #undef TYPE_OPERAND_FMT | |
34 | #define TYPE_OPERAND_FMT "#%s" | |
35 | ||
36 | /* Define how the sparc registers should be numbered for Dwarf output. | |
37 | The numbering provided here should be compatible with the native | |
38 | svr4 SDB debugger in the sparc/svr4 reference port. */ | |
39 | ||
40 | #define DBX_REGISTER_NUMBER(REGNO) \ | |
41 | ((REGNO) < 32) ? (REGNO) : ((REGNO) + 8)) | |
42 | ||
43 | /* A pair of defines for the set of pseudo-ops used to switch to the | |
44 | .ctors and .dtors sections. Note that on the sparc, all user-defined | |
45 | sections have the "progbits" attribute by default, so we don't even | |
46 | specify it here. */ | |
47 | ||
48 | #define CTORS_SECTION_ASM_OP "\t.section\t.ctors,\"a\"" | |
49 | #define DTORS_SECTION_ASM_OP "\t.section\t.dtors,\"a\"" |