import of gcc-2.8
[official-gcc.git] / gcc / config / rs6000 / linux.h
blob10474e4d5cf65cdd113fc3180ffc4173c270e609
1 /* Definitions of target machine for GNU compiler,
2 for IBM RS/6000 running AIX version 3.1.
3 Copyright (C) 1996, 1997 Free Software Foundation, Inc.
4 Contributed by Michael Meissner (meissner@cygnus.com).
6 This file is part of GNU CC.
8 GNU CC is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 2, or (at your option)
11 any later version.
13 GNU CC is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with GNU CC; see the file COPYING. If not, write to
20 the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
22 #include "rs6000/sysv4.h"
24 #undef CPP_PREDEFINES
25 #define CPP_PREDEFINES \
26 "-DPPC -Dunix -Dlinux -Dpowerpc -Asystem(unix) -Asystem(linux) -Acpu(powerpc) -Amachine(powerpc)"
28 #undef LINK_SPEC
29 #define LINK_SPEC "-m elf32ppc %{shared:-shared} \
30 %{!shared: \
31 %{!static: \
32 %{rdynamic:-export-dynamic} \
33 %{!dynamic-linker:-dynamic-linker /lib/ld.so.1}} \
34 %{static:-static}}"
36 #undef LIB_DEFAULT_SPEC
37 #define LIB_DEFAULT_SPEC "%(lib_linux)"
39 #undef STARTFILE_DEFAULT_SPEC
40 #define STARTFILE_DEFAULT_SPEC "%(startfile_linux)"
42 #undef ENDFILE_DEFAULT_SPEC
43 #define ENDFILE_DEFAULT_SPEC "%(endfile_linux)"
45 #undef LINK_START_DEFAULT_SPEC
46 #define LINK_START_DEFAULT_SPEC "%(link_start_linux)"
48 #undef LINK_OS_DEFAULT_SPEC
49 #define LINK_OS_DEFAULT_SPEC "%(link_os_linux)"
51 #undef TARGET_VERSION
52 #define TARGET_VERSION fprintf (stderr, " (PowerPC GNU/Linux)");
54 /* Define this macro as a C expression for the initializer of an
55 array of string to tell the driver program which options are
56 defaults for this target and thus do not need to be handled
57 specially when using `MULTILIB_OPTIONS'.
59 Do not define this macro if `MULTILIB_OPTIONS' is not defined in
60 the target makefile fragment or if none of the options listed in
61 `MULTILIB_OPTIONS' are set by default. *Note Target Fragment::. */
63 #undef MULTILIB_DEFAULTS
64 #define MULTILIB_DEFAULTS { "mbig", "mcall-linux" }
66 #undef DEFAULT_VTABLE_THUNKS
67 #define DEFAULT_VTABLE_THUNKS 1