OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [config/] [i386/] [netware.h] - Blame information for rev 298

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 282 jeremybenn
/* Core target definitions for GCC for Intel 80x86 running Netware.
2
   and using dwarf for the debugging format.
3
   Copyright (C) 1993, 1994, 2004, 2007, 2008 Free Software Foundation, Inc.
4
 
5
   Written by David V. Henkel-Wallace (gumby@cygnus.com)
6
 
7
This file is part of GCC.
8
 
9
GCC 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 3, or (at your option)
12
any later version.
13
 
14
GCC 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 GCC; see the file COPYING3.  If not see
21
<http://www.gnu.org/licenses/>.  */
22
 
23
#define TARGET_VERSION fprintf (stderr, " (x86 NetWare)");
24
 
25
#undef  CPP_SPEC
26
#define CPP_SPEC "%{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT}"
27
 
28
#undef  LIB_SPEC
29
#define LIB_SPEC ""
30
 
31
/* Kinda useless, but what the hell */
32
#undef  LINK_SPEC
33
#define LINK_SPEC "%{h*} %{V} %{v:%{!V:-V}} \
34
                   %{b} \
35
                   %{Qy:} %{!Qn:-Qy}"
36
 
37
#undef  STARTFILE_SPEC
38
#define STARTFILE_SPEC ""
39
 
40
#undef  ENDFILE_SPEC
41
#define ENDFILE_SPEC ""
42
 
43
#undef  RELATIVE_PREFIX_NOT_LINKDIR
44
#undef  LIBGCC_SPEC
45
 
46
#define TARGET_OS_CPP_BUILTINS()                                        \
47
  do                                                                    \
48
    {                                                                   \
49
        builtin_define_std ("IAPX386");                                 \
50
        builtin_define ("_M_IX86=300");                                 \
51
        builtin_define ("__netware__");                                 \
52
        builtin_assert ("system=netware");                              \
53
        builtin_define ("__ELF__");                                     \
54
        builtin_define ("__cdecl=__attribute__((__cdecl__))");          \
55
        builtin_define ("__stdcall=__attribute__((__stdcall__))");      \
56
        builtin_define ("__fastcall=__attribute__((__fastcall__))");    \
57
        if (!flag_iso)                                                  \
58
          {                                                             \
59
            builtin_define ("_cdecl=__attribute__((__cdecl__))");       \
60
            builtin_define ("_stdcall=__attribute__((__stdcall__))");   \
61
            builtin_define ("_fastcall=__attribute__((__fastcall__))"); \
62
          }                                                             \
63
    }                                                                   \
64
  while (0)
65
 
66
#undef TARGET_CPU_DEFAULT
67
#define TARGET_CPU_DEFAULT TARGET_CPU_DEFAULT_pentium4
68
 
69
/* By default, target has a 80387, uses IEEE compatible arithmetic,
70
   returns float values in the 387, and uses MSVC bit field layout. */
71
#undef TARGET_SUBTARGET_DEFAULT
72
#define TARGET_SUBTARGET_DEFAULT (MASK_80387 | MASK_IEEE_FP | \
73
        MASK_FLOAT_RETURNS | MASK_ALIGN_DOUBLE | MASK_MS_BITFIELD_LAYOUT)
74
 
75
/* Don't allow flag_pic to propagate since invalid relocations will
76
   result otherwise.  */
77
#define SUBTARGET_OVERRIDE_OPTIONS                                      \
78
do {                                                                    \
79
  if (flag_pic)                                                         \
80
    {                                                                   \
81
      error ("-fPIC and -fpic are not supported for this target");      \
82
      flag_pic = 0;                                                     \
83
    }                                                                   \
84
} while (0)
85
 
86
#undef MATH_LIBRARY
87
#define MATH_LIBRARY ""
88
 
89
/* Align doubles and long-longs in structures on qword boundaries.  */
90
#undef BIGGEST_FIELD_ALIGNMENT
91
#define BIGGEST_FIELD_ALIGNMENT 64
92
 
93
#undef DEFAULT_PCC_STRUCT_RETURN
94
#define DEFAULT_PCC_STRUCT_RETURN 0
95
 
96
/* Implicit arguments pointing to aggregate return values are to be
97
   removed by the caller.  */
98
#undef KEEP_AGGREGATE_RETURN_POINTER
99
#define KEEP_AGGREGATE_RETURN_POINTER 1
100
 
101
#undef ASM_COMMENT_START
102
#define ASM_COMMENT_START "#"
103
 
104
#undef DBX_REGISTER_NUMBER
105
#define DBX_REGISTER_NUMBER(n) (svr4_dbx_register_map[n])
106
 
107
/* Enable parsing of #pragma pack(push,<n>) and #pragma pack(pop).  */
108
#define HANDLE_PRAGMA_PACK_PUSH_POP
109
 
110
/* Default structure packing is 1-byte. */
111
#define TARGET_DEFAULT_PACK_STRUCT 1
112
 
113
#undef WCHAR_TYPE
114
#define WCHAR_TYPE "short unsigned int"
115
 
116
#undef WCHAR_TYPE_SIZE
117
#define WCHAR_TYPE_SIZE 16
118
 
119
#undef WINT_TYPE
120
#define WINT_TYPE "int"
121
 
122
/* A C statement (sans semicolon) to output to the stdio stream
123
   FILE the assembler definition of uninitialized global DECL named
124
   NAME whose size is SIZE bytes and alignment is ALIGN bytes.
125
   Try to use asm_output_aligned_bss to implement this macro.  */
126
 
127
#define ASM_OUTPUT_ALIGNED_BSS(FILE, DECL, NAME, SIZE, ALIGN) \
128
  asm_output_aligned_bss (FILE, DECL, NAME, SIZE, ALIGN)
129
 
130
/* Handle special EH pointer encodings.  Absolute, pc-relative, and
131
   indirect are handled automatically.  */
132
#define ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX(FILE, ENCODING, SIZE, ADDR, DONE) \
133
  do {                                                                  \
134
    if ((SIZE) == 4 && ((ENCODING) & 0x70) == DW_EH_PE_datarel)         \
135
      {                                                                 \
136
        fputs (ASM_LONG, FILE);                 \
137
        assemble_name (FILE, XSTR (ADDR, 0));                            \
138
        fputs (((ENCODING) & DW_EH_PE_indirect ? "@GOT" : "@GOTOFF"), FILE); \
139
        goto DONE;                                                      \
140
      }                                                                 \
141
  } while (0)
142
 
143
/* there is no TLS support in NLMs/on NetWare */
144
#undef HAVE_AS_TLS
145
 
146
#define HAS_INIT_SECTION
147
#undef  INIT_SECTION_ASM_OP
148
 
149
#define CTOR_LISTS_DEFINED_EXTERNALLY
150
 
151
#undef  READONLY_DATA_SECTION_ASM_OP
152
#define READONLY_DATA_SECTION_ASM_OP    ".section\t.rodata"
153
 
154
/* Define this macro if references to a symbol must be treated
155
   differently depending on something about the variable or
156
   function named by the symbol (such as what section it is in).
157
 
158
   On i386 running NetWare, modify the assembler name with an underscore (_)
159
   or atsign (@) prefix and a suffix consisting of an atsign (@) followed by
160
   a string of digits that represents the number of bytes of arguments passed
161
   to the function, if it has the attribute STDCALL. Alternatively, if it has
162
   the REGPARM attribute, prefix it with an underscore (_), a digit
163
   representing the number of registers used, and an atsign (@). */
164
void i386_nlm_encode_section_info (tree, rtx, int);
165
extern tree i386_nlm_mangle_decl_assembler_name (tree, tree);
166
const char *i386_nlm_strip_name_encoding (const char *);
167
#define SUBTARGET_ENCODE_SECTION_INFO  i386_nlm_encode_section_info
168
#define TARGET_MANGLE_DECL_ASSEMBLER_NAME i386_nlm_mangle_decl_assembler_name
169
#undef  TARGET_STRIP_NAME_ENCODING
170
#define TARGET_STRIP_NAME_ENCODING  i386_nlm_strip_name_encoding

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.