OSDN Git Service

* gcc.c: Document %{, in big comment at top.
[pf3gnuchains/gcc-fork.git] / gcc / config / alpha / openbsd.h
1 /* Configuration file for an alpha OpenBSD target.
2    Copyright (C) 1999, 2003 Free Software Foundation, Inc.
3
4 This file is part of GCC.
5
6 GCC is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2, or (at your option)
9 any later version.
10
11 GCC is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with GCC; see the file COPYING.  If not, write to
18 the Free Software Foundation, 51 Franklin Street, Fifth Floor,
19 Boston, MA 02110-1301, USA.  */
20
21 /* We settle for little endian for now.  */
22 #define TARGET_ENDIAN_DEFAULT 0
23
24 /* Controlling the compilation driver.  */
25
26 /* alpha needs __start.  */
27 #undef LINK_SPEC
28 #define LINK_SPEC \
29   "%{!nostdlib:%{!r*:%{!e*:-e __start}}} -dc -dp %{assert*}"
30
31 /* run-time target specifications */
32 #define TARGET_OS_CPP_BUILTINS()                \
33     do {                                        \
34         builtin_define ("__OpenBSD__");         \
35         builtin_define ("__ANSI_COMPAT");       \
36         builtin_define ("__unix__");            \
37         builtin_assert ("system=unix");         \
38     } while (0)
39
40 /* Layout of source language data types.  */
41
42 /* This must agree with <machine/ansi.h> */
43 #undef SIZE_TYPE
44 #define SIZE_TYPE "long unsigned int"
45
46 #undef PTRDIFF_TYPE
47 #define PTRDIFF_TYPE "long int"
48
49 #undef WCHAR_TYPE
50 #define WCHAR_TYPE "int"
51
52 #undef WCHAR_TYPE_SIZE
53 #define WCHAR_TYPE_SIZE 32
54
55 \f
56 #undef PREFERRED_DEBUGGING_TYPE
57 #define PREFERRED_DEBUGGING_TYPE DBX_DEBUG
58
59 #define LOCAL_LABEL_PREFIX      "."
60
61 /* We don't have an init section yet.  */
62 #undef HAS_INIT_SECTION
63
64 /* collect2 support (assembler format: macros for initialization).  */
65
66 /* Don't tell collect2 we use COFF as we don't have (yet ?) a dynamic ld
67    library with the proper functions to handle this -> collect2 will
68    default to using nm.  */
69 #undef OBJECT_FORMAT_COFF
70 #undef EXTENDED_COFF
71
72 /* Assembler format: exception region output.  */
73
74 /* All configurations that don't use elf must be explicit about not using
75    dwarf unwind information.  */
76 #ifdef INCOMING_RETURN_ADDR_RTX
77 #undef DWARF2_UNWIND_INFO
78 #define DWARF2_UNWIND_INFO 0
79 #endif
80
81 /* Assembler format: label output.  */
82
83 /* alpha ecoff supports only weak aliases.  */
84 #undef ASM_WEAKEN_LABEL
85 #define ASM_WEAKEN_LABEL(FILE,NAME) ASM_OUTPUT_WEAK_ALIAS (FILE,NAME,0)
86
87 #define ASM_OUTPUT_WEAK_ALIAS(FILE,NAME,VALUE)  \
88  do {                                           \
89   fputs ("\t.weakext\t", FILE);                 \
90   assemble_name (FILE, NAME);                   \
91   if (VALUE)                                    \
92     {                                           \
93       fputs (" , ", FILE);                      \
94       assemble_name (FILE, VALUE);              \
95     }                                           \
96   fputc ('\n', FILE);                           \
97  } while (0)
98
99