111
|
1 /* Common hooks for SPU.
|
131
|
2 Copyright (C) 2006-2018 Free Software Foundation, Inc.
|
111
|
3
|
|
4 This file is free software; you can redistribute it and/or modify it under
|
|
5 the terms of the GNU General Public License as published by the Free
|
|
6 Software Foundation; either version 3 of the License, or (at your option)
|
|
7 any later version.
|
|
8
|
|
9 This file is distributed in the hope that it will be useful, but WITHOUT
|
|
10 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
11 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
12 for more details.
|
|
13
|
|
14 You should have received a copy of the GNU General Public License
|
|
15 along with GCC; see the file COPYING3. If not see
|
|
16 <http://www.gnu.org/licenses/>. */
|
|
17
|
|
18 #include "config.h"
|
|
19 #include "system.h"
|
|
20 #include "coretypes.h"
|
|
21 #include "tm.h"
|
|
22 #include "common/common-target.h"
|
|
23 #include "common/common-target-def.h"
|
|
24 #include "opts.h"
|
|
25 #include "flags.h"
|
|
26 #include "params.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 /* Implement TARGET_OPTION_DEFAULT_PARAMS. */
|
|
36 static void
|
|
37 spu_option_default_params (void)
|
|
38 {
|
|
39 /* Override some of the default param values. With so many registers
|
|
40 larger values are better for these params. */
|
|
41 set_default_param_value (PARAM_MAX_PENDING_LIST_LENGTH, 128);
|
|
42 }
|
|
43
|
|
44 #undef TARGET_DEFAULT_TARGET_FLAGS
|
|
45 #define TARGET_DEFAULT_TARGET_FLAGS (TARGET_DEFAULT)
|
|
46
|
|
47 #undef TARGET_OPTION_INIT_STRUCT
|
|
48 #define TARGET_OPTION_INIT_STRUCT spu_option_init_struct
|
|
49
|
|
50 #undef TARGET_OPTION_DEFAULT_PARAMS
|
|
51 #define TARGET_OPTION_DEFAULT_PARAMS spu_option_default_params
|
|
52
|
|
53 #undef TARGET_EXCEPT_UNWIND_INFO
|
|
54 #define TARGET_EXCEPT_UNWIND_INFO sjlj_except_unwind_info
|
|
55
|
|
56 struct gcc_targetm_common targetm_common = TARGETM_COMMON_INITIALIZER;
|