1 /* Common hooks for SPU.
2 Copyright (C) 2006-2019 Free Software Foundation, Inc.
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)
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
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/>. */
20 #include "coretypes.h"
22 #include "common/common-target.h"
23 #include "common/common-target-def.h"
29 spu_option_init_struct (struct gcc_options
*opts
)
31 /* With so many registers this is better on by default. */
32 opts
->x_flag_rename_registers
= 1;
35 /* Implement TARGET_OPTION_DEFAULT_PARAMS. */
37 spu_option_default_params (void)
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);
44 #undef TARGET_DEFAULT_TARGET_FLAGS
45 #define TARGET_DEFAULT_TARGET_FLAGS (TARGET_DEFAULT)
47 #undef TARGET_OPTION_INIT_STRUCT
48 #define TARGET_OPTION_INIT_STRUCT spu_option_init_struct
50 #undef TARGET_OPTION_DEFAULT_PARAMS
51 #define TARGET_OPTION_DEFAULT_PARAMS spu_option_default_params
53 #undef TARGET_EXCEPT_UNWIND_INFO
54 #define TARGET_EXCEPT_UNWIND_INFO sjlj_except_unwind_info
56 struct gcc_targetm_common targetm_common
= TARGETM_COMMON_INITIALIZER
;