OSDN Git Service

* config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
[pf3gnuchains/gcc-fork.git] / gcc / config / rs6000 / netbsd.h
1 /* Definitions of target machine for GNU compiler,
2    for PowerPC NetBSD systems.
3    Copyright 2001 Free Software Foundation, Inc.
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, 59 Temple Place - Suite 330,
20 Boston, MA 02111-1307, USA.  */
21
22 /* Under NetBSD, the normal location of the various *crt*.o files is
23    the /usr/lib directory [from config/netbsd.h].  */
24
25 #undef STANDARD_STARTFILE_PREFIX
26 #define STANDARD_STARTFILE_PREFIX "/usr/lib/"
27
28 /* FIXME: Should this macro be treated the same as for the other
29    spec's?  */
30 /* NOTE: -dc and -dp are equivalent yet NetBSD's CC passes both both!
31    NetBSD's CC also passes -O1 but we can skip that.  NetBSD explictly
32    sets ``-e _start'', since LD knows this, skip it.  */
33
34 #undef LINK_SHLIB_SPEC
35 #define LINK_SHLIB_SPEC "\
36 %{shared:-shared} \
37 %{!shared: %{static:-dc -dp -static}} \
38 %{!shared: %{!static:-dc -dp}} \
39 "
40
41 /* Override the defaults.  */
42 #undef LIB_DEFAULT_SPEC
43 #define LIB_DEFAULT_SPEC "%(lib_netbsd)"
44
45 #undef STARTFILE_DEFAULT_SPEC
46 #define STARTFILE_DEFAULT_SPEC "%(startfile_netbsd)"
47
48 #undef ENDFILE_DEFAULT_SPEC
49 #define ENDFILE_DEFAULT_SPEC "%(endfile_netbsd)"
50
51 #undef LINK_START_DEFAULT_SPEC
52 #define LINK_START_DEFAULT_SPEC "%(link_start_netbsd)"
53
54 #undef  LINK_OS_DEFAULT_SPEC
55 #define LINK_OS_DEFAULT_SPEC "%(link_os_netbsd)"
56
57 #undef  CPP_OS_DEFAULT_SPEC
58 #define CPP_OS_DEFAULT_SPEC "%(cpp_os_netbsd)"
59
60 #undef TARGET_VERSION
61 #define TARGET_VERSION fprintf (stderr, " (PowerPC NetBSD/ELF)");
62
63 /* For backward compatibility, we must continue to use the AIX
64    structure return convention.  */
65 #undef DRAFT_V4_STRUCT_RET
66 #define DRAFT_V4_STRUCT_RET 1
67
68 /* Use STABS debugging information by default.  DWARF2 makes a mess of
69    the 1.5.2 linker.  */
70 #undef  PREFERRED_DEBUGGING_TYPE
71 #define PREFERRED_DEBUGGING_TYPE DBX_DEBUG