OSDN Git Service

PR middle-end/51516
[pf3gnuchains/gcc-fork.git] / gcc / config / rs6000 / linuxspe.h
1 /* Definitions of target machine for GNU compiler,
2    for PowerPC e500 machines running GNU/Linux.
3    Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2011
4    Free Software Foundation, Inc.
5    Contributed by Aldy Hernandez (aldy@quesejoda.com).
6
7    This file is part of GCC.
8
9    GCC is free software; you can redistribute it and/or modify it
10    under the terms of the GNU General Public License as published
11    by the Free Software Foundation; either version 3, or (at your
12    option) any later version.
13
14    GCC is distributed in the hope that it will be useful, but WITHOUT
15    ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
16    or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public
17    License for more details.
18
19    You should have received a copy of the GNU General Public License
20    along with GCC; see the file COPYING3.  If not see
21    <http://www.gnu.org/licenses/>.  */
22
23 /* Override rs6000.h and sysv4.h definition.  */
24 #undef  TARGET_DEFAULT
25 #define TARGET_DEFAULT (MASK_POWERPC | MASK_NEW_MNEMONICS | MASK_STRICT_ALIGN)
26
27 #undef  SUBSUBTARGET_OVERRIDE_OPTIONS
28 #define SUBSUBTARGET_OVERRIDE_OPTIONS \
29   if (!global_options_set.x_rs6000_cpu_index) \
30     rs6000_cpu = PROCESSOR_PPC8540; \
31   if (!global_options_set.x_rs6000_spe_abi) \
32     rs6000_spe_abi = 1; \
33   if (!global_options_set.x_rs6000_float_gprs) \
34     rs6000_float_gprs = 1; \
35   if (!global_options_set.x_rs6000_spe) \
36     rs6000_spe = 1; \
37   if (target_flags & MASK_64BIT) \
38     error ("-m64 not supported in this configuration")
39
40 #undef  ASM_DEFAULT_SPEC
41 #define ASM_DEFAULT_SPEC "-mppc -mspe -me500"