]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/common/config/spu/spu-common.c
target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to common/common-target-def.h.
[thirdparty/gcc.git] / gcc / common / config / spu / spu-common.c
1 /* Common hooks for SPU.
2 Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011
3 Free Software Foundation, Inc.
4
5 This file is free software; you can redistribute it and/or modify it under
6 the terms of the GNU General Public License as published by the Free
7 Software Foundation; either version 3 of the License, or (at your option)
8 any later version.
9
10 This file is distributed in the hope that it will be useful, but WITHOUT
11 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
13 for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with GCC; see the file COPYING3. If not see
17 <http://www.gnu.org/licenses/>. */
18
19 #include "config.h"
20 #include "system.h"
21 #include "coretypes.h"
22 #include "tm.h"
23 #include "common/common-target.h"
24 #include "common/common-target-def.h"
25 #include "opts.h"
26 #include "flags.h"
27
28 static void
29 spu_option_init_struct (struct gcc_options *opts)
30 {
31 /* With so many registers this is better on by default. */
32 opts->x_flag_rename_registers = 1;
33 }
34
35 #undef TARGET_DEFAULT_TARGET_FLAGS
36 #define TARGET_DEFAULT_TARGET_FLAGS (TARGET_DEFAULT)
37
38 #undef TARGET_OPTION_INIT_STRUCT
39 #define TARGET_OPTION_INIT_STRUCT spu_option_init_struct
40
41 #undef TARGET_EXCEPT_UNWIND_INFO
42 #define TARGET_EXCEPT_UNWIND_INFO sjlj_except_unwind_info
43
44 struct gcc_targetm_common targetm_common = TARGETM_COMMON_INITIALIZER;