OSDN Git Service

* mips/mips.h (INIT_SUBTARGET_OPTABS): Define if not defined.
[pf3gnuchains/gcc-fork.git] / gcc / config / mips / elf.h
1 /* Definitions of target machine for GNU compiler.  MIPS R3000 version with
2    GOFAST floating point library.
3    Copyright (C) 1994, 1997 Free Software Foundation, Inc.
4
5 This file is part of GNU CC.
6
7 GNU CC is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2, or (at your option)
10 any later version.
11
12 GNU CC is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with GNU CC; see the file COPYING.  If not, write to
19 the Free Software Foundation, 59 Temple Place - Suite 330,
20 Boston, MA 02111-1307, USA.  */
21
22 /* Use ELF.  */
23 #define OBJECT_FORMAT_ELF
24
25 /* Until we figure out what MIPS ELF targets normally use, just do
26    stabs in ELF.  */
27 #ifndef PREFERRED_DEBUGGING_TYPE
28 #define PREFERRED_DEBUGGING_TYPE DBX_DEBUG
29 #endif
30
31 /* Mostly like ECOFF.  */
32 #include "mips/ecoff.h"
33
34 /* We need to use .esize and .etype instead of .size and .type to
35    avoid conflicting with ELF directives.  */
36 #undef PUT_SDB_SIZE
37 #define PUT_SDB_SIZE(a)                                 \
38 do {                                                    \
39   extern FILE *asm_out_text_file;                       \
40   fprintf (asm_out_text_file, "\t.esize\t%d;", (a));    \
41 } while (0)
42
43 #undef PUT_SDB_TYPE
44 #define PUT_SDB_TYPE(a)                                 \
45 do {                                                    \
46   extern FILE *asm_out_text_file;                       \
47   fprintf (asm_out_text_file, "\t.etype\t0x%x;", (a));  \
48 } while (0)
49
50 /* Biggest alignment supported by the object file format of this
51    machine.  Use this macro to limit the alignment which can be
52    specified using the `__attribute__ ((aligned (N)))' construct.  If
53    not defined, the default value is `BIGGEST_ALIGNMENT'.  */
54
55 #define MAX_OFILE_ALIGNMENT (32768*8)
56
57 /* A C statement to output something to the assembler file to switch to section
58    NAME for object DECL which is either a FUNCTION_DECL, a VAR_DECL or
59    NULL_TREE.  Some target formats do not support arbitrary sections.  Do not
60    define this macro in such cases.  */
61
62 #define ASM_OUTPUT_SECTION_NAME(F, DECL, NAME, RELOC) \
63 do {                                                            \
64   extern FILE *asm_out_text_file;                               \
65   if ((DECL) && TREE_CODE (DECL) == FUNCTION_DECL)              \
66     fprintf (asm_out_text_file, "\t.section %s,\"ax\",@progbits\n", (NAME)); \
67   else if ((DECL) && DECL_READONLY_SECTION (DECL, RELOC))       \
68     fprintf (F, "\t.section %s,\"a\",@progbits\n", (NAME));     \
69   else                                                          \
70     fprintf (F, "\t.section %s,\"aw\",@progbits\n", (NAME));    \
71 } while (0)