OSDN Git Service

* config/i386/i386.c (ix86_expand_setcc): Don't use method 0
[pf3gnuchains/gcc-fork.git] / gcc / config / alpha / freebsd.h
1 /* Definitions for DEC Alpha/AXP running FreeBSD using the ELF format
2    Copyright (C) 2000 Free Software Foundation, Inc.
3    Contributed by David E. O'Brien <obrien@FreeBSD.org> and BSDi.
4
5 This file is part of GNU CC.
6
7 GNU CC is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2, or (at your option)
10 any later version.
11
12 GNU CC is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with GNU CC; see the file COPYING.  If not, write to
19 the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
20
21
22 /* Provide a CPP_SPEC appropriate for FreeBSD/alpha.  Besides the dealing with
23    the GCC option `-posix', and PIC issues as on all FreeBSD platforms, we must
24    deal with the Alpha's FP issues.  */
25
26 #undef  CPP_SPEC
27 #define CPP_SPEC "%(cpp_cpu)                                            \
28   %{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__}               \
29   %{posix:-D_POSIX_SOURCE}                                              \
30   %{mieee:-D_IEEE_FP}                                                   \
31   %{mieee-with-inexact:-D_IEEE_FP -D_IEEE_FP_INEXACT}"
32
33 #undef  LINK_SPEC
34 #define LINK_SPEC "-m elf64alpha %{G*} %{relax:-relax}                  \
35   %{p:%e`-p' not supported; use `-pg' and gprof(1)}                     \
36   %{Wl,*:%*}                                                            \
37   %{assert*} %{R*} %{rpath*} %{defsym*}                                 \
38   %{shared:-Bshareable %{h*} %{soname*}}                                \
39   %{symbolic:-Bsymbolic}                                                \
40   %{!shared:                                                            \
41     %{!static:                                                          \
42       %{rdynamic:-export-dynamic}                                       \
43       %{!dynamic-linker:-dynamic-linker /usr/libexec/ld-elf.so.1}}      \
44     %{static:-Bstatic}}"
45
46 /* Provide an ASM_SPEC appropriate for a FreeBSD/Alpha target.  This differs
47    from the generic FreeBSD ASM_SPEC in that no special handling of PIC is
48    necessary on the Alpha.  */
49 /* Per Richard Henderson <rth@cygnus.com>, it is better to use the `.arch'
50    directive in the assembly file.  alpha/elf.h gives us this in
51    "ASM_FILE_START".
52 #undef  ASM_SPEC
53 #define ASM_SPEC " %| %{mcpu=*:-m%*}"
54 */
55
56
57 /************************[  Target stuff  ]***********************************/
58
59 /* Define the actual types of some ANSI-mandated types.  
60    Needs to agree with <machine/ansi.h>.  GCC defaults come from c-decl.c,
61    c-common.c, and config/<arch>/<arch>.h.  */
62
63 /* alpha.h gets this wrong for FreeBSD.  We use the GCC defaults instead.  */
64 #undef WCHAR_TYPE
65
66 #undef  WCHAR_UNSIGNED
67 #define WCHAR_UNSIGNED 0
68
69 #undef  WCHAR_TYPE_SIZE
70 #define WCHAR_TYPE_SIZE 32
71
72 #undef  TARGET_VERSION
73 #define TARGET_VERSION fprintf (stderr, " (FreeBSD/alpha ELF)");
74
75 #define TARGET_ELF              1
76
77 #undef  TARGET_DEFAULT
78 #define TARGET_DEFAULT (MASK_FP | MASK_FPREGS | MASK_GAS)
79
80 #undef HAS_INIT_SECTION
81
82 /* Output assembler code to FILE to increment profiler label # LABELNO
83    for profiling a function entry.  Under FreeBSD/Alpha, the assembler does
84    nothing special with -pg. */
85
86 #undef  FUNCTION_PROFILER
87 #define FUNCTION_PROFILER(FILE, LABELNO)                                \
88         fputs ("\tjsr $28,_mcount\n", (FILE))
89
90 /* Show that we need a GP when profiling.  */
91 #undef  TARGET_PROFILING_NEEDS_GP
92 #define TARGET_PROFILING_NEEDS_GP 1
93
94 /* This is the char to use for continuation (in case we need to turn
95    continuation back on).  */
96
97 #undef  DBX_CONTIN_CHAR
98 #define DBX_CONTIN_CHAR '?'