comparison gcc/common/config/m32r/m32r-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 Renesas M32R. 1 /* Common hooks for Renesas M32R.
2 Copyright (C) 1996-2017 Free Software Foundation, Inc. 2 Copyright (C) 1996-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 it 6 GCC is free software; you can redistribute it and/or modify it
7 under the terms of the GNU General Public License as published 7 under the terms of the GNU General Public License as published
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 static const struct default_options m32r_option_optimization_table[] =
30 {
31 { OPT_LEVELS_1_PLUS, OPT_fomit_frame_pointer, NULL, 1 },
32 { OPT_LEVELS_NONE, 0, NULL, 0 }
33 };
34 28
35 /* Implement TARGET_HANDLE_OPTION. */ 29 /* Implement TARGET_HANDLE_OPTION. */
36 30
37 static bool 31 static bool
38 m32r_handle_option (struct gcc_options *opts, 32 m32r_handle_option (struct gcc_options *opts,
63 57
64 #undef TARGET_DEFAULT_TARGET_FLAGS 58 #undef TARGET_DEFAULT_TARGET_FLAGS
65 #define TARGET_DEFAULT_TARGET_FLAGS TARGET_CPU_DEFAULT 59 #define TARGET_DEFAULT_TARGET_FLAGS TARGET_CPU_DEFAULT
66 #undef TARGET_HANDLE_OPTION 60 #undef TARGET_HANDLE_OPTION
67 #define TARGET_HANDLE_OPTION m32r_handle_option 61 #define TARGET_HANDLE_OPTION m32r_handle_option
68 #undef TARGET_OPTION_OPTIMIZATION_TABLE
69 #define TARGET_OPTION_OPTIMIZATION_TABLE m32r_option_optimization_table
70 62
71 #undef TARGET_EXCEPT_UNWIND_INFO 63 #undef TARGET_EXCEPT_UNWIND_INFO
72 #define TARGET_EXCEPT_UNWIND_INFO sjlj_except_unwind_info 64 #define TARGET_EXCEPT_UNWIND_INFO sjlj_except_unwind_info
73 65
74 struct gcc_targetm_common targetm_common = TARGETM_COMMON_INITIALIZER; 66 struct gcc_targetm_common targetm_common = TARGETM_COMMON_INITIALIZER;