OSDN Git Service

* dwarf2out.c (dwarf2out_finish): Don't abort because of orphan
[pf3gnuchains/gcc-fork.git] / gcc / config / netware.h
1 /* netware.h -- operating system specific defines to be used when 
2    targeting GCC for some generic NetWare 4 system.
3    Copyright (C) 1993, 1994, 2000, 2001 Free Software Foundation, Inc.
4
5    Written by David V. Henkel-Wallace (gumby@cygnus.com)
6
7 This file is part of GNU CC.
8
9 GNU CC is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 2, or (at your option)
12 any later version.
13
14 GNU CC is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 GNU General Public License for more details.
18
19 You should have received a copy of the GNU General Public License
20 along with GNU CC; see the file COPYING.  If not, write to
21 the Free Software Foundation, 59 Temple Place - Suite 330,
22 Boston, MA 02111-1307, USA.  */
23
24 /* We don't actually need any of these; the MD_ vars are ignored
25    anyway for cross-compilers, and the other specs won't get picked up
26    'coz the user is supposed to do ld -r (hmm, perhaps that should be
27    the default).  In any case, setting them thus will catch some
28    common user errors. */
29
30 #undef MD_EXEC_PREFIX
31 #undef MD_STARTFILE_PREFIX
32
33 #undef  LIB_SPEC
34 #define LIB_SPEC ""
35
36 /* Kinda useless, but what the hell */
37 #undef  LINK_SPEC
38 #define LINK_SPEC "%{h*} %{V} %{v:%{!V:-V}} \
39                    %{b} %{Wl,*:%*} \
40                    %{Qy:} %{!Qn:-Qy}"
41
42 #undef  STARTFILE_SPEC
43 #define STARTFILE_SPEC ""
44
45 #undef  ENDFILE_SPEC
46 #define ENDFILE_SPEC ""
47
48 #undef  RELATIVE_PREFIX_NOT_LINKDIR
49 #undef  LIBGCC_SPEC
50
51 /* set debugging info */
52 #define DBX_DEBUGGING_INFO
53 #undef  SDB_DEBUGGING_INFO
54 #undef  DWARF_DEBUGGING_INFO
55 #undef  XCOFF_DEBUGGING_INFO
56 #undef  PREFERRED_DEBUGGING_TYPE
57 #define PREFERRED_DEBUGGING_TYPE DBX_DEBUG
58
59 /* Support const sections and the ctors and dtors sections for g++.
60    Note that there appears to be two different ways to support const
61    sections at the moment.  You can either #define the symbol
62    READONLY_DATA_SECTION (giving it some code which switches to the
63    readonly data section) or else you can #define the symbols
64    EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS, SELECT_SECTION, and
65    SELECT_RTX_SECTION.  We do both here just to be on the safe side.  */
66
67 #undef  HAS_INIT_SECTION
68 #undef  INIT_SECTION_ASM_OP
69
70 #undef  READONLY_DATA_SECTION
71 #define READONLY_DATA_SECTION   const_section 
72
73 #undef  CONST_SECTION_ASM_OP
74 #define CONST_SECTION_ASM_OP    ".section\t.rodata"
75 #undef  CTORS_SECTION_ASM_OP
76 #define CTORS_SECTION_ASM_OP    ".section\t.ctors,\"x\""
77 #undef  DTORS_SECTION_ASM_OP
78 #define DTORS_SECTION_ASM_OP    ".section\t.dtors,\"x\""
79
80 /* A list of other sections which the compiler might be "in" at any
81    given time.  */
82
83 #undef EXTRA_SECTIONS
84 #define EXTRA_SECTIONS in_const
85
86 /* A list of extra section function definitions.  */
87
88 #undef  EXTRA_SECTION_FUNCTIONS
89 #define EXTRA_SECTION_FUNCTIONS                                         \
90   CONST_SECTION_FUNCTION
91
92 #undef  CONST_SECTION_FUNCTION
93 #define CONST_SECTION_FUNCTION                                          \
94 void                                                                    \
95 const_section ()                                                        \
96 {                                                                       \
97   if (in_section != in_const)                                           \
98     {                                                                   \
99       fprintf (asm_out_file, "%s\n", CONST_SECTION_ASM_OP);             \
100       in_section = in_const;                                            \
101     }                                                                   \
102 }