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)
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/>. */
21 #include "coretypes.h"
23 #include "common/common-target.h"
24 #include "common/common-target-def.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
32 #define MASK_DEFAULT_ALLOC_CC 0
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 \
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
;