GCN back-end code
[official-gcc.git] / gcc / common / config / gcn / gcn-common.c
blobf34953dc04b1e5e495ddb0184f286831cf1a0364
1 /* Common hooks for GCN
2 Copyright (C) 2016-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)
7 any later version.
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.
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/>. */
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"
28 /* Set default optimization options. */
29 static const struct default_options gcn_option_optimization_table[] =
31 { OPT_LEVELS_1_PLUS, OPT_fomit_frame_pointer, NULL, 1 },
32 { OPT_LEVELS_NONE, 0, NULL, 0 }
35 #undef TARGET_OPTION_OPTIMIZATION_TABLE
36 #define TARGET_OPTION_OPTIMIZATION_TABLE gcn_option_optimization_table
38 struct gcc_targetm_common targetm_common = TARGETM_COMMON_INITIALIZER;