This commit was manufactured by cvs2svn to create branch
[official-gcc.git] / gcc / config / mips / iris5gas.h
blob49af06b5367adebc2876c06da74d407aecb9d299
1 /* Definitions of target machine for GNU compiler. IRIX version 5 with gas.
2 Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
3 Free Software Foundation, Inc.
5 This file is part of GCC.
7 GCC 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.
12 GCC 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.
17 You should have received a copy of the GNU General Public License
18 along with GCC; see the file COPYING. If not, write to
19 the Free Software Foundation, 59 Temple Place - Suite 330,
20 Boston, MA 02111-1307, USA. */
22 /* Reenable debugging. */
23 #define PREFERRED_DEBUGGING_TYPE DWARF2_DEBUG
25 /* GNU as does handle DWARF2 directives. */
26 #undef DWARF2_UNWIND_INFO
27 #define DWARF2_UNWIND_INFO 1
29 /* Override iris5.h version to invoke [cd]tors and register eh frame
30 information. */
31 #undef LINK_SPEC
32 #define LINK_SPEC "\
33 %{G*} %{EB} %{EL} %{mips1} %{mips2} %{mips3} \
34 %{bestGnum} %{shared} %{non_shared} \
35 %{call_shared} %{no_archive} %{exact_version} \
36 %{static: -non_shared} \
37 %{!static: \
38 %{!shared:%{!non_shared:%{!call_shared: -call_shared -no_unresolved}}}} \
39 %{rpath} -init __do_global_ctors -fini __do_global_dtors \
40 %{shared:-hidden_symbol __do_global_ctors,__do_global_ctors_1,__do_global_dtors} \
41 -_SYSTYPE_SVR4"
43 /* Override iris5.h versions to include crtbegin.o and crtend.o. */
45 #undef STARTFILE_SPEC
46 #define STARTFILE_SPEC "%(irix_startfile_spec) crtbegin.o%s"
48 #undef ENDFILE_SPEC
49 #define ENDFILE_SPEC "crtend.o%s %(irix_endfile_spec)"
51 /* Irix 5 does not have some strange restrictions that Irix 3 had. */
52 #undef SET_FILE_NUMBER
53 #define SET_FILE_NUMBER() ++num_source_filenames
54 #undef LABEL_AFTER_LOC
55 #define LABEL_AFTER_LOC(STREAM)
57 /* We need to use .esize and .etype instead of .size and .type to
58 avoid conflicting with ELF directives. These are only recognized
59 by gas, anyhow, not the native assembler. */
60 #undef PUT_SDB_SIZE
61 #define PUT_SDB_SIZE(a) \
62 do { \
63 fprintf (asm_out_file, "\t.esize\t" HOST_WIDE_INT_PRINT_DEC ";", \
64 (HOST_WIDE_INT) (a)); \
65 } while (0)
67 #undef PUT_SDB_TYPE
68 #define PUT_SDB_TYPE(a) \
69 do { \
70 fprintf (asm_out_file, "\t.etype\t0x%x;", (a)); \
71 } while (0)
73 /* Add -g to mips.h default to avoid confusing gas with local symbols
74 generated from stabs info. */
75 #undef NM_FLAGS
76 #define NM_FLAGS "-Bng"
78 /* Disable SHF_MERGE support. Even if gas supports it, the IRIX ld does not
79 without a special elspec(5) file.
81 FIXME: Only do this if not using GNU ld. */
82 #undef HAVE_GAS_SHF_MERGE
83 #define HAVE_GAS_SHF_MERGE 0