* config/i386/i386.md (mmx_pinsrw): Output operands in correct
[official-gcc.git] / gcc / config / netware.h
blob58386a1fd14f6f714d4fc283be0d9061a9b80bde
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 Free Software Foundation, Inc.
5 Written by David V. Henkel-Wallace (gumby@cygnus.com)
7 This file is part of GNU CC.
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.
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.
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, 675 Mass Ave, Cambridge, MA 02139, USA. */
23 /* We don't actually need any of these; the MD_ vars are ignored
24 anyway for cross-compilers, and the other specs won't get picked up
25 'coz the user is supposed to do ld -r (hmm, perhaps that should be
26 the default). In any case, setting them thus will catch some
27 common user errors. */
29 #undef MD_EXEC_PREFIX
30 #undef MD_STARTFILE_PREFIX
32 #undef LIB_SPEC
33 #define LIB_SPEC ""
35 /* Kinda useless, but what the hell */
36 #undef LINK_SPEC
37 #define LINK_SPEC "%{h*} %{V} %{v:%{!V:-V}} \
38 %{b} %{Wl,*:%*} \
39 %{Qy:} %{!Qn:-Qy}"
41 #undef STARTFILE_SPEC
42 #define STARTFILE_SPEC ""
44 #undef ENDFILE_SPEC
45 #define ENDFILE_SPEC ""
47 #undef RELATIVE_PREFIX_NOT_LINKDIR
48 #undef LIBGCC_SPEC
50 /* set debugging info */
51 #define DBX_DEBUGGING_INFO
52 #undef SDB_DEBUGGING_INFO
53 #undef DWARF_DEBUGGING_INFO
54 #undef XCOFF_DEBUGGING_INFO
55 #undef PREFERRED_DEBUGGING_TYPE
56 #define PREFERRED_DEBUGGING_TYPE DBX_DEBUG
58 /* Support const sections and the ctors and dtors sections for g++.
59 Note that there appears to be two different ways to support const
60 sections at the moment. You can either #define the symbol
61 READONLY_DATA_SECTION (giving it some code which switches to the
62 readonly data section) or else you can #define the symbols
63 EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS, SELECT_SECTION, and
64 SELECT_RTX_SECTION. We do both here just to be on the safe side. */
66 #define HAVE_ATEXIT
68 #undef HAS_INIT_SECTION
69 #undef INIT_SECTION_ASM_OP
71 #undef READONLY_DATA_SECTION
72 #define READONLY_DATA_SECTION const_section
74 #undef CONST_SECTION_ASM_OP
75 #define CONST_SECTION_ASM_OP ".section\t.rodata"
76 #undef CTORS_SECTION_ASM_OP
77 #define CTORS_SECTION_ASM_OP ".section\t.ctors,\"x\""
78 #undef DTORS_SECTION_ASM_OP
79 #define DTORS_SECTION_ASM_OP ".section\t.dtors,\"x\""
81 /* A list of other sections which the compiler might be "in" at any
82 given time. */
84 #undef EXTRA_SECTIONS
85 #define EXTRA_SECTIONS in_const, in_ctors, in_dtors
87 /* A list of extra section function definitions. */
89 #undef EXTRA_SECTION_FUNCTIONS
90 #define EXTRA_SECTION_FUNCTIONS \
91 CONST_SECTION_FUNCTION \
92 CTORS_SECTION_FUNCTION \
93 DTORS_SECTION_FUNCTION
95 #undef CONST_SECTION_FUNCTION
96 #define CONST_SECTION_FUNCTION \
97 void \
98 const_section () \
99 { \
100 if (in_section != in_const) \
102 fprintf (asm_out_file, "%s\n", CONST_SECTION_ASM_OP); \
103 in_section = in_const; \
107 #undef CTORS_SECTION_FUNCTION
108 #define CTORS_SECTION_FUNCTION \
109 void \
110 ctors_section () \
112 if (in_section != in_ctors) \
114 fprintf (asm_out_file, "%s\n", CTORS_SECTION_ASM_OP); \
115 in_section = in_ctors; \
119 #undef DTORS_SECTION_FUNCTION
120 #define DTORS_SECTION_FUNCTION \
121 void \
122 dtors_section () \
124 if (in_section != in_dtors) \
126 fprintf (asm_out_file, "%s\n", DTORS_SECTION_ASM_OP); \
127 in_section = in_dtors; \
131 #define INT_ASM_OP ".long"
133 /* A C statement (sans semicolon) to output an element in the table of
134 global constructors. */
135 #define ASM_OUTPUT_CONSTRUCTOR(FILE,NAME) \
136 do { \
137 ctors_section (); \
138 fprintf (FILE, "\t%s\t ", INT_ASM_OP); \
139 assemble_name (FILE, NAME); \
140 fprintf (FILE, "\n"); \
141 } while (0)
143 /* A C statement (sans semicolon) to output an element in the table of
144 global destructors. */
145 #define ASM_OUTPUT_DESTRUCTOR(FILE,NAME) \
146 do { \
147 dtors_section (); \
148 fprintf (FILE, "\t%s\t ", INT_ASM_OP); \
149 assemble_name (FILE, NAME); \
150 fprintf (FILE, "\n"); \
151 } while (0)