]>
Commit | Line | Data |
---|---|---|
3185dc73 DE |
1 | /* Definitions of target machine for GNU compiler. MIPS R3000 version with |
2 | GOFAST floating point library. | |
c9280dfe AM |
3 | Copyright (C) 1994, 1997, 1999, 2000, 2002, 2003 |
4 | Free Software Foundation, Inc. | |
3185dc73 | 5 | |
7ec022b2 | 6 | This file is part of GCC. |
3185dc73 | 7 | |
7ec022b2 | 8 | GCC is free software; you can redistribute it and/or modify |
3185dc73 DE |
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 | ||
7ec022b2 | 13 | GCC is distributed in the hope that it will be useful, |
3185dc73 DE |
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 | |
7ec022b2 | 19 | along with GCC; see the file COPYING. If not, write to |
0e29e3c9 RK |
20 | the Free Software Foundation, 59 Temple Place - Suite 330, |
21 | Boston, MA 02111-1307, USA. */ | |
3185dc73 | 22 | |
23532de9 | 23 | #define DWARF2_DEBUGGING_INFO 1 |
8b0397a6 | 24 | |
6d439235 EC |
25 | #undef PREFERRED_DEBUGGING_TYPE |
26 | #define PREFERRED_DEBUGGING_TYPE DWARF2_DEBUG | |
3185dc73 | 27 | |
6d439235 EC |
28 | #undef SUBTARGET_ASM_DEBUGGING_SPEC |
29 | #define SUBTARGET_ASM_DEBUGGING_SPEC "-g0" | |
a211c7b9 MM |
30 | |
31 | /* Biggest alignment supported by the object file format of this | |
32 | machine. Use this macro to limit the alignment which can be | |
33 | specified using the `__attribute__ ((aligned (N)))' construct. If | |
34 | not defined, the default value is `BIGGEST_ALIGNMENT'. */ | |
35 | ||
6d439235 | 36 | #undef MAX_OFILE_ALIGNMENT |
a211c7b9 | 37 | #define MAX_OFILE_ALIGNMENT (32768*8) |
337e2b69 | 38 | |
7c262518 | 39 | /* Switch into a generic section. */ |
6d439235 | 40 | #undef TARGET_ASM_NAMED_SECTION |
7c262518 | 41 | #define TARGET_ASM_NAMED_SECTION default_elf_asm_named_section |
a0281dae | 42 | |
674576f1 RH |
43 | /* The following macro defines the format used to output the second |
44 | operand of the .type assembler directive. Different svr4 assemblers | |
45 | expect various different forms for this operand. The one given here | |
46 | is just a default. You may need to override it in your machine- | |
47 | specific tm.h file (depending upon the particulars of your assembler). */ | |
48 | ||
49 | #define TYPE_OPERAND_FMT "@%s" | |
50 | ||
51 | /* Define the strings used for the special svr4 .type and .size directives. | |
52 | These strings generally do not vary from one system running svr4 to | |
53 | another, but if a given system (e.g. m88k running svr) needs to use | |
54 | different pseudo-op names for these, they may be overridden in the | |
55 | file which includes this one. */ | |
56 | ||
57 | #undef TYPE_ASM_OP | |
58 | #undef SIZE_ASM_OP | |
78d057d8 HPN |
59 | #define TYPE_ASM_OP "\t.type\t" |
60 | #define SIZE_ASM_OP "\t.size\t" | |
674576f1 | 61 | |
48b1580e VM |
62 | /* If defined, a C expression whose value is a string containing the |
63 | assembler operation to identify the following data as | |
64 | uninitialized global data. If not defined, and neither | |
65 | `ASM_OUTPUT_BSS' nor `ASM_OUTPUT_ALIGNED_BSS' are defined, | |
66 | uninitialized global data will be output in the data section if | |
67 | `-fno-common' is passed, otherwise `ASM_OUTPUT_COMMON' will be | |
68 | used. */ | |
46f9491e | 69 | |
48b1580e | 70 | #ifndef BSS_SECTION_ASM_OP |
78d057d8 | 71 | #define BSS_SECTION_ASM_OP "\t.section\t.bss" |
48b1580e VM |
72 | #endif |
73 | ||
48b1580e | 74 | #ifndef ASM_OUTPUT_ALIGNED_BSS |
6d0b50a4 | 75 | #define ASM_OUTPUT_ALIGNED_BSS mips_output_aligned_bss |
48b1580e VM |
76 | #endif |
77 | ||
c1115ccd RS |
78 | #undef ASM_DECLARE_OBJECT_NAME |
79 | #define ASM_DECLARE_OBJECT_NAME mips_declare_object_name | |
80 | ||
81 | #undef ASM_FINISH_DECLARE_OBJECT | |
82 | #define ASM_FINISH_DECLARE_OBJECT mips_finish_declare_object | |
674576f1 | 83 | |
a0281dae GK |
84 | #define ASM_OUTPUT_DEF(FILE,LABEL1,LABEL2) \ |
85 | do { fputc ( '\t', FILE); \ | |
86 | assemble_name (FILE, LABEL1); \ | |
87 | fputs ( " = ", FILE); \ | |
88 | assemble_name (FILE, LABEL2); \ | |
89 | fputc ( '\n', FILE); \ | |
90 | } while (0) | |
91 | ||
92 | /* Note about .weak vs. .weakext | |
93 | The mips native assemblers support .weakext, but not .weak. | |
94 | mips-elf gas supports .weak, but not .weakext. | |
95 | mips-elf gas has been changed to support both .weak and .weakext, | |
96 | but until that support is generally available, the 'if' below | |
987ba558 | 97 | should serve. */ |
a0281dae | 98 | |
6d439235 | 99 | #undef ASM_WEAKEN_LABEL |
a0281dae GK |
100 | #define ASM_WEAKEN_LABEL(FILE,NAME) ASM_OUTPUT_WEAK_ALIAS(FILE,NAME,0) |
101 | #define ASM_OUTPUT_WEAK_ALIAS(FILE,NAME,VALUE) \ | |
102 | do { \ | |
103 | if (TARGET_GAS) \ | |
104 | fputs ("\t.weak\t", FILE); \ | |
105 | else \ | |
106 | fputs ("\t.weakext\t", FILE); \ | |
107 | assemble_name (FILE, NAME); \ | |
108 | if (VALUE) \ | |
109 | { \ | |
110 | fputc (' ', FILE); \ | |
111 | assemble_name (FILE, VALUE); \ | |
112 | } \ | |
113 | fputc ('\n', FILE); \ | |
114 | } while (0) | |
115 | ||
6ed173d0 | 116 | #define MAKE_DECL_ONE_ONLY(DECL) (DECL_WEAK (DECL) = 1) |
ae46c4e0 | 117 | |
46f9491e EC |
118 | /* On elf, we *do* have support for the .init and .fini sections, and we |
119 | can put stuff in there to be executed before and after `main'. We let | |
120 | crtstuff.c and other files know this by defining the following symbols. | |
121 | The definitions say how to change sections to the .init and .fini | |
122 | sections. This is the same for all known elf assemblers. */ | |
123 | ||
124 | #undef INIT_SECTION_ASM_OP | |
125 | #define INIT_SECTION_ASM_OP "\t.section\t.init" | |
126 | #undef FINI_SECTION_ASM_OP | |
127 | #define FINI_SECTION_ASM_OP "\t.section\t.fini" | |
128 | ||
d8265d29 | 129 | /* Don't set the target flags, this is done by the linker script */ |
6d439235 | 130 | #undef LIB_SPEC |
d8265d29 CM |
131 | #define LIB_SPEC "" |
132 | ||
133 | #undef STARTFILE_SPEC | |
4357a6c3 | 134 | #define STARTFILE_SPEC "crti%O%s crtbegin%O%s" |
d8265d29 CM |
135 | |
136 | #undef ENDFILE_SPEC | |
46f9491e | 137 | #define ENDFILE_SPEC "crtend%O%s crtn%O%s" |
2eb2bbdc EC |
138 | |
139 | /* We support #pragma. */ | |
140 | #define HANDLE_SYSV_PRAGMA 1 |