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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [config/] [i386/] [sol2.h] - Blame information for rev 760

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

Line No. Rev Author Line
1 709 jeremybenn
/* Target definitions for GCC for Intel 80386 running Solaris 2
2
   Copyright (C) 1993, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
3
   2004, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
4
   Contributed by Fred Fish (fnf@cygnus.com).
5
 
6
This file is part of GCC.
7
 
8
GCC is free software; you can redistribute it and/or modify
9
it under the terms of the GNU General Public License as published by
10
the Free Software Foundation; either version 3, or (at your option)
11
any later version.
12
 
13
GCC is distributed in the hope that it will be useful,
14
but WITHOUT ANY WARRANTY; without even the implied warranty of
15
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
GNU General Public License for more details.
17
 
18
You should have received a copy of the GNU General Public License
19
along with GCC; see the file COPYING3.  If not see
20
<http://www.gnu.org/licenses/>.  */
21
 
22
/* Augment i386/unix.h version to return 8-byte vectors in memory, matching
23
   Sun Studio compilers until version 12, the only ones supported on
24
   Solaris 8 and 9.  */
25
#undef TARGET_SUBTARGET_DEFAULT
26
#define TARGET_SUBTARGET_DEFAULT \
27
        (MASK_80387 | MASK_IEEE_FP | MASK_FLOAT_RETURNS | MASK_VECT8_RETURNS)
28
 
29
/* Old versions of the Solaris assembler can not handle the difference of
30
   labels in different sections, so force DW_EH_PE_datarel.  */
31
#undef ASM_PREFERRED_EH_DATA_FORMAT
32
#define ASM_PREFERRED_EH_DATA_FORMAT(CODE,GLOBAL)                       \
33
  (flag_pic ? ((GLOBAL ? DW_EH_PE_indirect : 0)                          \
34
               | (TARGET_64BIT ? DW_EH_PE_pcrel | DW_EH_PE_sdata4       \
35
                  : DW_EH_PE_datarel))                                  \
36
   : DW_EH_PE_absptr)
37
 
38
/* The Solaris linker will not merge a read-only .eh_frame section
39
   with a read-write .eh_frame section.  None of the encodings used
40
   with non-PIC code require runtime relocations.  In 64-bit mode,
41
   since there is no backwards compatibility issue, we use a read-only
42
   section for .eh_frame.  In 32-bit mode, we use a writable .eh_frame
43
   section in order to be compatible with G++ for Solaris x86.  */
44
#undef EH_TABLES_CAN_BE_READ_ONLY
45
#define EH_TABLES_CAN_BE_READ_ONLY (TARGET_64BIT)
46
 
47
/* Follow Sun requirements for TLS code sequences and use Sun assembler TLS
48
   syntax.  */
49
#undef TARGET_SUN_TLS
50
#define TARGET_SUN_TLS 1
51
 
52
#undef  SIZE_TYPE
53
#define SIZE_TYPE "unsigned int"
54
 
55
#undef  PTRDIFF_TYPE
56
#define PTRDIFF_TYPE "int"
57
 
58
/* Solaris 2/Intel as chokes on #line directives before Solaris 10.  */
59
#undef CPP_SPEC
60
#define CPP_SPEC "%{,assembler-with-cpp:-P} %(cpp_subtarget)"
61
 
62
#define ASM_CPU_DEFAULT_SPEC ""
63
 
64
#define ASM_CPU_SPEC ""
65
 
66
/* Don't include ASM_PIC_SPEC.  While the Solaris 8 and 9 assembler accepts
67
   -K PIC, it gives many warnings:
68
        R_386_32 relocation is used for symbol "<symbol>"
69
   GNU as doesn't recognize -K at all.  */
70
#undef ASM_SPEC
71
#define ASM_SPEC ASM_SPEC_BASE
72
 
73
#undef  ENDFILE_SPEC
74
#define ENDFILE_SPEC \
75
  "%{Ofast|ffast-math|funsafe-math-optimizations:crtfastmath.o%s} \
76
   %{mpc32:crtprec32.o%s} \
77
   %{mpc64:crtprec64.o%s} \
78
   %{mpc80:crtprec80.o%s} \
79
   crtend.o%s crtn.o%s"
80
 
81
#define SUBTARGET_CPU_EXTRA_SPECS \
82
  { "cpp_subtarget",     CPP_SUBTARGET_SPEC },          \
83
  { "asm_cpu",           ASM_CPU_SPEC },                \
84
  { "asm_cpu_default",   ASM_CPU_DEFAULT_SPEC },        \
85
 
86
#undef SUBTARGET_EXTRA_SPECS
87
#define SUBTARGET_EXTRA_SPECS \
88
  { "startfile_arch",   STARTFILE_ARCH_SPEC },          \
89
  { "link_arch",        LINK_ARCH_SPEC },               \
90
  SUBTARGET_CPU_EXTRA_SPECS
91
 
92
/* Register the Solaris-specific #pragma directives.  */
93
#define REGISTER_SUBTARGET_PRAGMAS() solaris_register_pragmas ()
94
 
95
#undef LOCAL_LABEL_PREFIX
96
#define LOCAL_LABEL_PREFIX "."
97
 
98
/* The 32-bit Solaris assembler does not support .quad.  Do not use it.  */
99
#ifndef HAVE_AS_IX86_QUAD
100
#undef ASM_QUAD
101
#endif
102
 
103
/* The Solaris assembler wants a .local for non-exported aliases.  */
104
#define ASM_OUTPUT_DEF_FROM_DECLS(FILE, DECL, TARGET)   \
105
  do {                                                  \
106
    const char *declname =                              \
107
      IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (DECL));  \
108
    ASM_OUTPUT_DEF ((FILE), declname,                   \
109
                    IDENTIFIER_POINTER (TARGET));       \
110
    if (! TREE_PUBLIC (DECL))                           \
111
      {                                                 \
112
        fprintf ((FILE), "%s", LOCAL_ASM_OP);           \
113
        assemble_name ((FILE), declname);               \
114
        fprintf ((FILE), "\n");                         \
115
      }                                                 \
116
  } while (0)
117
 
118
#ifndef USE_GAS
119
/* The Sun assembler uses .tcomm for TLS common sections.  */
120
#define TLS_COMMON_ASM_OP ".tcomm"
121
 
122
/* Similar to the Sun assembler on SPARC, the native assembler requires
123
   TLS objects to be declared as @tls_obj (not @tls_object).  Unlike SPARC,
124
   gas doesn't understand this variant.  */
125
#undef  ASM_DECLARE_OBJECT_NAME
126
#define ASM_DECLARE_OBJECT_NAME(FILE, NAME, DECL)               \
127
  do                                                            \
128
    {                                                           \
129
      HOST_WIDE_INT size;                                       \
130
                                                                \
131
      if (targetm.have_tls && DECL_THREAD_LOCAL_P (DECL))       \
132
        ASM_OUTPUT_TYPE_DIRECTIVE (FILE, NAME, "tls_obj");      \
133
      else                                                      \
134
        ASM_OUTPUT_TYPE_DIRECTIVE (FILE, NAME, "object");       \
135
                                                                \
136
      size_directive_output = 0;                         \
137
      if (!flag_inhibit_size_directive                          \
138
          && (DECL) && DECL_SIZE (DECL))                        \
139
        {                                                       \
140
          size_directive_output = 1;                            \
141
          size = int_size_in_bytes (TREE_TYPE (DECL));          \
142
          ASM_OUTPUT_SIZE_DIRECTIVE (FILE, NAME, size);         \
143
        }                                                       \
144
                                                                \
145
      ASM_OUTPUT_LABEL (FILE, NAME);                            \
146
    }                                                           \
147
  while (0)
148
#endif /* !USE_GAS */
149
 
150
/* Output a simple call for .init/.fini.  */
151
#define ASM_OUTPUT_CALL(FILE, FN)                               \
152
  do                                                            \
153
    {                                                           \
154
      fprintf (FILE, "\tcall\t");                               \
155
      ix86_print_operand (FILE, XEXP (DECL_RTL (FN), 0), 'P');   \
156
      fprintf (FILE, "\n");                                     \
157
    }                                                           \
158
  while (0)
159
 
160
#undef TARGET_ASM_NAMED_SECTION
161
#define TARGET_ASM_NAMED_SECTION i386_solaris_elf_named_section
162
 
163
#ifndef USE_GAS
164
/* Emit COMDAT group signature symbols for Sun as.  */
165
#undef TARGET_ASM_FILE_END
166
#define TARGET_ASM_FILE_END solaris_file_end
167
#endif
168
 
169
/* Unlike GNU ld, Sun ld doesn't coalesce .ctors.N/.dtors.N sections, so
170
   inhibit their creation.  Also cf. sparc/sysv4.h.  */
171
#ifndef USE_GLD
172
#define CTORS_SECTION_ASM_OP    "\t.section\t.ctors, \"aw\""
173
#define DTORS_SECTION_ASM_OP    "\t.section\t.dtors, \"aw\""
174
#endif
175
 
176
/* We do not need NT_VERSION notes.  */
177
#undef X86_FILE_START_VERSION_DIRECTIVE
178
#define X86_FILE_START_VERSION_DIRECTIVE false
179
 
180
/* Only recent versions of Solaris 11 ld properly support hidden .gnu.linkonce
181
   sections, so don't use them.  */
182
#ifndef USE_GLD
183
#define USE_HIDDEN_LINKONCE 0
184
#endif
185
 
186
/* Put all *tf routines in libgcc.  */
187
#undef LIBGCC2_HAS_TF_MODE
188
#define LIBGCC2_HAS_TF_MODE 1
189
#define LIBGCC2_TF_CEXT q
190
#define TF_SIZE 113

powered by: WebSVN 2.1.0

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