1 /* Definitions of target machine for GNU compiler,
2 for IBM RS/6000 running MACH.
3 Copyright (C) 1992, 1999, 2003 Free Software Foundation, Inc.
4 Contributed by Richard Kenner (kenner@nyu.edu)
6 This file is part of GCC.
8 GCC is free software; you can redistribute it and/or modify it
9 under the terms of the GNU General Public License as published
10 by the Free Software Foundation; either version 2, or (at your
11 option) any later version.
13 GCC is distributed in the hope that it will be useful, but WITHOUT
14 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
15 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
16 License for more details.
18 You should have received a copy of the GNU General Public License
19 along with GCC; see the file COPYING. If not, write to the
20 Free Software Foundation, 59 Temple Place - Suite 330, Boston,
21 MA 02111-1307, USA. */
25 /* Print subsidiary information on the compiler version in use. */
26 #define TARGET_VERSION fprintf (stderr, " (Mach-RS/6000)");
28 /* We don't define AIX under MACH; instead we define `unix'. */
29 #undef TARGET_OS_CPP_BUILTINS
30 #define TARGET_OS_CPP_BUILTINS() \
33 builtin_define_std ("rios"); \
34 builtin_define ("_IBMR2"); \
35 builtin_define_std ("unix"); \
36 builtin_assert ("system=unix"); \
37 builtin_assert ("system=mach"); \
38 builtin_assert ("cpu=rs6000"); \
39 builtin_assert ("machine=rs6000"); \
43 /* Define different binder options for MACH. */
46 "-T0x10000000 -D0x20000000 -K %{!nostdlib:%{!r*:%{!e*:-e __start}}} \
47 -bnoso -berrmsg -btextro -bhalt:4 -bnodelcsect"
49 /* MACH doesn't have atexit. */
52 /* Don't default to pcc-struct-return, because gcc is the only compiler, and
53 we want to retain compatibility with older gcc versions. */
54 #define DEFAULT_PCC_STRUCT_RETURN 0