comparison gcc/common/config/cris/cris-common.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children 1830386684a0
comparison
equal deleted inserted replaced
111:04ced10e8804 131:84e7813d76e9
1 /* Common hooks for CRIS. 1 /* Common hooks for CRIS.
2 Copyright (C) 1998-2017 Free Software Foundation, Inc. 2 Copyright (C) 1998-2018 Free Software Foundation, Inc.
3 3
4 This file is part of GCC. 4 This file is part of GCC.
5 5
6 GCC is free software; you can redistribute it and/or modify 6 GCC is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by 7 it under the terms of the GNU General Public License as published by
23 #include "tm.h" 23 #include "tm.h"
24 #include "common/common-target.h" 24 #include "common/common-target.h"
25 #include "common/common-target-def.h" 25 #include "common/common-target-def.h"
26 #include "opts.h" 26 #include "opts.h"
27 #include "flags.h" 27 #include "flags.h"
28
29 /* Implement TARGET_OPTION_OPTIMIZATION_TABLE. */
30
31 static const struct default_options cris_option_optimization_table[] =
32 {
33 { OPT_LEVELS_2_PLUS, OPT_fomit_frame_pointer, NULL, 1 },
34 { OPT_LEVELS_NONE, 0, NULL, 0 }
35 };
36 28
37 /* TARGET_HANDLE_OPTION worker. We just store the values into local 29 /* TARGET_HANDLE_OPTION worker. We just store the values into local
38 variables here. Checks for correct semantics are in 30 variables here. Checks for correct semantics are in
39 cris_option_override. */ 31 cris_option_override. */
40 32
96 88
97 #undef TARGET_DEFAULT_TARGET_FLAGS 89 #undef TARGET_DEFAULT_TARGET_FLAGS
98 #define TARGET_DEFAULT_TARGET_FLAGS (TARGET_DEFAULT | CRIS_SUBTARGET_DEFAULT) 90 #define TARGET_DEFAULT_TARGET_FLAGS (TARGET_DEFAULT | CRIS_SUBTARGET_DEFAULT)
99 #undef TARGET_HANDLE_OPTION 91 #undef TARGET_HANDLE_OPTION
100 #define TARGET_HANDLE_OPTION cris_handle_option 92 #define TARGET_HANDLE_OPTION cris_handle_option
101 #undef TARGET_OPTION_OPTIMIZATION_TABLE
102 #define TARGET_OPTION_OPTIMIZATION_TABLE cris_option_optimization_table
103 93
104 struct gcc_targetm_common targetm_common = TARGETM_COMMON_INITIALIZER; 94 struct gcc_targetm_common targetm_common = TARGETM_COMMON_INITIALIZER;