2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / config / alpha / openbsd.h
blobb9df2e4255c5b2148835e10fab27743108cb6390
1 /* Configuration file for an alpha OpenBSD target.
2 Copyright (C) 1999, 2003 Free Software Foundation, Inc.
4 This file is part of GCC.
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.
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.
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, 59 Temple Place - Suite 330,
19 Boston, MA 02111-1307, USA. */
21 /* We settle for little endian for now. */
22 #define TARGET_ENDIAN_DEFAULT 0
24 /* Controlling the compilation driver. */
26 /* alpha needs __start. */
27 #undef LINK_SPEC
28 #define LINK_SPEC \
29 "%{!nostdlib:%{!r*:%{!e*:-e __start}}} -dc -dp %{assert*}"
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)
40 /* Layout of source language data types. */
42 /* This must agree with <machine/ansi.h> */
43 #undef SIZE_TYPE
44 #define SIZE_TYPE "long unsigned int"
46 #undef PTRDIFF_TYPE
47 #define PTRDIFF_TYPE "long int"
49 #undef WCHAR_TYPE
50 #define WCHAR_TYPE "int"
52 #undef WCHAR_TYPE_SIZE
53 #define WCHAR_TYPE_SIZE 32
56 #undef PREFERRED_DEBUGGING_TYPE
57 #define PREFERRED_DEBUGGING_TYPE DBX_DEBUG
59 #define LOCAL_LABEL_PREFIX "."
61 /* We don't have an init section yet. */
62 #undef HAS_INIT_SECTION
64 /* collect2 support (assembler format: macros for initialization). */
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
72 /* Assembler format: exception region output. */
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
81 /* Assembler format: label output. */
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)
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)