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

Subversion Repositories openrisc

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

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

Line No. Rev Author Line
1 709 jeremybenn
/* Definitions for Intel 386 running FreeBSD with ELF format
2
   Copyright (C) 1996, 2000, 2002, 2004, 2007, 2010, 2011
3
   Free Software Foundation, Inc.
4
   Contributed by Eric Youngdale.
5
   Modified for stabs-in-ELF by H.J. Lu.
6
   Adapted from GNU/Linux version by John Polstra.
7
   Continued development by David O'Brien <obrien@freebsd.org>
8
 
9
This file is part of GCC.
10
 
11
GCC is free software; you can redistribute it and/or modify
12
it under the terms of the GNU General Public License as published by
13
the Free Software Foundation; either version 3, or (at your option)
14
any later version.
15
 
16
GCC is distributed in the hope that it will be useful,
17
but WITHOUT ANY WARRANTY; without even the implied warranty of
18
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19
GNU General Public License for more details.
20
 
21
You should have received a copy of the GNU General Public License
22
along with GCC; see the file COPYING3.  If not see
23
<http://www.gnu.org/licenses/>.  */
24
 
25
 
26
/* Override the default comment-starter of "/".  */
27
#undef  ASM_COMMENT_START
28
#define ASM_COMMENT_START "#"
29
 
30
#undef  ASM_APP_ON
31
#define ASM_APP_ON "#APP\n"
32
 
33
#undef  ASM_APP_OFF
34
#define ASM_APP_OFF "#NO_APP\n"
35
 
36
#undef  DBX_REGISTER_NUMBER
37
#define DBX_REGISTER_NUMBER(n) \
38
  (TARGET_64BIT ? dbx64_register_map[n] : svr4_dbx_register_map[n])
39
 
40
#undef  NO_PROFILE_COUNTERS
41
#define NO_PROFILE_COUNTERS     1
42
 
43
/* Tell final.c that we don't need a label passed to mcount.  */
44
 
45
#undef  MCOUNT_NAME
46
#define MCOUNT_NAME ".mcount"
47
 
48
/* Make gcc agree with <machine/ansi.h>.  */
49
 
50
#undef  SIZE_TYPE
51
#define SIZE_TYPE       (TARGET_64BIT ? "long unsigned int" : "unsigned int")
52
 
53
#undef  PTRDIFF_TYPE
54
#define PTRDIFF_TYPE    (TARGET_64BIT ? "long int" : "int")
55
 
56
#undef  WCHAR_TYPE_SIZE
57
#define WCHAR_TYPE_SIZE (TARGET_64BIT ? 32 : BITS_PER_WORD)
58
 
59
#undef  SUBTARGET_EXTRA_SPECS   /* i386.h bogusly defines it.  */
60
#define SUBTARGET_EXTRA_SPECS \
61
  { "fbsd_dynamic_linker", FBSD_DYNAMIC_LINKER }
62
 
63
/* Provide a STARTFILE_SPEC appropriate for FreeBSD.  Here we add
64
   the magical crtbegin.o file (see crtstuff.c) which provides part
65
        of the support for getting C++ file-scope static object constructed
66
        before entering `main'.  */
67
 
68
#undef  STARTFILE_SPEC
69
#define STARTFILE_SPEC \
70
  "%{!shared: \
71
     %{pg:gcrt1.o%s} %{!pg:%{p:gcrt1.o%s} \
72
                       %{!p:%{profile:gcrt1.o%s} \
73
                         %{!profile:crt1.o%s}}}} \
74
   crti.o%s %{!shared:crtbegin.o%s} %{shared:crtbeginS.o%s}"
75
 
76
/* Provide a ENDFILE_SPEC appropriate for FreeBSD.  Here we tack on
77
   the magical crtend.o file (see crtstuff.c) which provides part of
78
        the support for getting C++ file-scope static object constructed
79
        before entering `main', followed by a normal "finalizer" file,
80
        `crtn.o'.  */
81
 
82
#undef  ENDFILE_SPEC
83
#define ENDFILE_SPEC \
84
  "%{!shared:crtend.o%s} %{shared:crtendS.o%s} crtn.o%s"
85
 
86
/* Provide a LINK_SPEC appropriate for FreeBSD.  Here we provide support
87
   for the special GCC options -static and -shared, which allow us to
88
   link things in one of these three modes by applying the appropriate
89
   combinations of options at link-time.
90
 
91
   When the -shared link option is used a final link is not being
92
   done.  */
93
 
94
#undef  LINK_SPEC
95
#define LINK_SPEC "\
96
  %{p:%nconsider using '-pg' instead of '-p' with gprof(1)} \
97
  %{v:-V} \
98
  %{assert*} %{R*} %{rpath*} %{defsym*} \
99
  %{shared:-Bshareable %{h*} %{soname*}} \
100
    %{!shared: \
101
      %{!static: \
102
        %{rdynamic:-export-dynamic} \
103
        -dynamic-linker %(fbsd_dynamic_linker) } \
104
    %{static:-Bstatic}} \
105
  %{symbolic:-Bsymbolic}"
106
 
107
/* A C statement to output to the stdio stream FILE an assembler
108
   command to advance the location counter to a multiple of 1<<LOG
109
   bytes if it is within MAX_SKIP bytes.
110
 
111
   This is used to align code labels according to Intel recommendations.  */
112
 
113
#ifdef HAVE_GAS_MAX_SKIP_P2ALIGN
114
#undef  ASM_OUTPUT_MAX_SKIP_ALIGN
115
#define ASM_OUTPUT_MAX_SKIP_ALIGN(FILE, LOG, MAX_SKIP)                                  \
116
  if ((LOG) != 0) {                                                                                                             \
117
    if ((MAX_SKIP) == 0) fprintf ((FILE), "\t.p2align %d\n", (LOG));    \
118
    else fprintf ((FILE), "\t.p2align %d,,%d\n", (LOG), (MAX_SKIP));    \
119
  }
120
#endif
121
 
122
/* Don't default to pcc-struct-return, we want to retain compatibility with
123
   older gcc versions AND pcc-struct-return is nonreentrant.
124
   (even though the SVR4 ABI for the i386 says that records and unions are
125
   returned in memory).  */
126
 
127
#undef  DEFAULT_PCC_STRUCT_RETURN
128
#define DEFAULT_PCC_STRUCT_RETURN 0
129
 
130
/* FreeBSD sets the rounding precision of the FPU to 53 bits.  Let the
131
   compiler get the contents of <float.h> and std::numeric_limits correct.  */
132
#undef TARGET_96_ROUND_53_LONG_DOUBLE
133
#define TARGET_96_ROUND_53_LONG_DOUBLE (!TARGET_64BIT)
134
 
135
/* Put all *tf routines in libgcc.  */
136
#undef LIBGCC2_HAS_TF_MODE
137
#define LIBGCC2_HAS_TF_MODE 1
138
#define LIBGCC2_TF_CEXT q
139
#define TF_SIZE 113
140
 
141
/* Static stack checking is supported by means of probes.  */
142
#define STACK_CHECK_STATIC_BUILTIN 1
143
 
144
/* Support for i386 has been removed from FreeBSD 6.0 onward.  */
145
#if FBSD_MAJOR >= 6
146
#define SUBTARGET32_DEFAULT_CPU "i486"
147
#endif
148
 
149
#define TARGET_ASM_FILE_END file_end_indicate_exec_stack
150
 

powered by: WebSVN 2.1.0

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