Reverting merge from trunk
[official-gcc.git] / gcc / common / config / frv / frv-common.c
blobd196f8de3d412940e7cf44b7b805ebdf86512f49
1 /* Copyright (C) 1997-2013 Free Software Foundation, Inc.
3 This file is part of GCC.
5 GCC is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 3, or (at your option)
8 any later version.
10 GCC is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
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/>. */
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"
28 /* Allow us to easily change the default for -malloc-cc. */
29 #ifndef DEFAULT_NO_ALLOC_CC
30 #define MASK_DEFAULT_ALLOC_CC MASK_ALLOC_CC
31 #else
32 #define MASK_DEFAULT_ALLOC_CC 0
33 #endif
35 /* Implement TARGET_OPTION_OPTIMIZATION_TABLE. */
36 static const struct default_options frv_option_optimization_table[] =
38 { OPT_LEVELS_1_PLUS, OPT_fomit_frame_pointer, NULL, 1 },
39 { OPT_LEVELS_NONE, 0, NULL, 0 }
42 #undef TARGET_DEFAULT_TARGET_FLAGS
43 #define TARGET_DEFAULT_TARGET_FLAGS \
44 (MASK_DEFAULT_ALLOC_CC \
45 | MASK_COND_MOVE \
46 | MASK_SCC \
47 | MASK_COND_EXEC \
48 | MASK_VLIW_BRANCH \
49 | MASK_MULTI_CE \
50 | MASK_NESTED_CE)
51 #undef TARGET_OPTION_OPTIMIZATION_TABLE
52 #define TARGET_OPTION_OPTIMIZATION_TABLE frv_option_optimization_table
54 struct gcc_targetm_common targetm_common = TARGETM_COMMON_INITIALIZER;