OSDN Git Service

Add rs6000/xilinx.h -- missed in earlier checkin.
[pf3gnuchains/gcc-fork.git] / gcc / config / rs6000 / xilinx.h
1 /* Support for GCC on Xilinx embedded PowerPC systems
2    Copyright (C) 2008 Free Software Foundation, Inc.
3    Contributed by Michael Eager, eager@eagercon.com
4
5    This file is part of GCC.
6
7    GCC is free software; you can redistribute it and/or modify it
8    under the terms of the GNU General Public License as published
9    by the Free Software Foundation; either version 3, or (at your
10    option) any later version.
11
12    GCC is distributed in the hope that it will be useful, but WITHOUT
13    ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
14    or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public
15    License for more details.
16
17    You should have received a copy of the GNU General Public License
18    along with GCC; see the file COPYING3.  If not see
19    <http://www.gnu.org/licenses/>.  */
20
21 /* Set defaults for Xilinx embedded target boards. */
22
23 #undef  LIB_DEFAULT_SPEC
24 #define LIB_DEFAULT_SPEC "\
25 %{!nostdlib: --start-group -lxil -lc -lm --end-group   \
26 %{mppcperflib: %{mfpu=*: -lppcstr405 -lgcc}            \
27 %{!mfpu=*: -lppcstr405 -lppcfp -lgcc}}                 \
28 %{!mppcperflib: -lgcc}}"
29
30 #undef  STARTFILE_DEFAULT_SPEC
31 #define STARTFILE_DEFAULT_SPEC "\
32 ecrti.o%s %{pg: %{!mno-clearbss: xil-pgcrt0.o%s} \
33 %{mno-clearbss: xil-sim-pgcrt0.o%s}}            \
34 %{!pg: %{!mno-clearbss: xil-crt0.o%s}           \
35 %{mno-clearbss: xil-sim-crt0.o%s}} crtbegin.o%s"
36
37 #undef  LINK_START_DEFAULT_SPEC
38 #define LINK_START_DEFAULT_SPEC "-T xilinx.ld%s"