]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/common/config/gcn/gcn-common.c
Update copyright years.
[thirdparty/gcc.git] / gcc / common / config / gcn / gcn-common.c
1 /* Common hooks for GCN
2 Copyright (C) 2016-2022 Free Software Foundation, Inc.
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
27 /* Set default optimization options. */
28 static const struct default_options gcn_option_optimization_table[] =
29 {
30 { OPT_LEVELS_3_PLUS, OPT_fomit_frame_pointer, NULL, 1 },
31 { OPT_LEVELS_NONE, 0, NULL, 0 }
32 };
33
34 #undef TARGET_OPTION_OPTIMIZATION_TABLE
35 #define TARGET_OPTION_OPTIMIZATION_TABLE gcn_option_optimization_table
36
37 static enum unwind_info_type
38 gcn_except_unwind_info (struct gcc_options *opts ATTRIBUTE_UNUSED)
39 {
40 return UI_NONE;
41 }
42
43 #undef TARGET_EXCEPT_UNWIND_INFO
44 #define TARGET_EXCEPT_UNWIND_INFO gcn_except_unwind_info
45
46 struct gcc_targetm_common targetm_common = TARGETM_COMMON_INITIALIZER;