comparison gcc/common/common-targhooks.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 /* Default common target hook functions. 1 /* Default common target hook functions.
2 Copyright (C) 2003-2017 Free Software Foundation, Inc. 2 Copyright (C) 2003-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 under 6 GCC is free software; you can redistribute it and/or modify it under
7 the terms of the GNU General Public License as published by the Free 7 the terms of the GNU General Public License as published by the Free
21 #include "system.h" 21 #include "system.h"
22 #include "coretypes.h" 22 #include "coretypes.h"
23 #include "tm.h" 23 #include "tm.h"
24 #include "common/common-target.h" 24 #include "common/common-target.h"
25 #include "common/common-targhooks.h" 25 #include "common/common-targhooks.h"
26 #include "opts.h"
26 27
27 /* Determine the exception handling mechanism for the target. */ 28 /* Determine the exception handling mechanism for the target. */
28 29
29 enum unwind_info_type 30 enum unwind_info_type
30 default_except_unwind_info (struct gcc_options *opts ATTRIBUTE_UNUSED) 31 default_except_unwind_info (struct gcc_options *opts ATTRIBUTE_UNUSED)
75 location_t loc ATTRIBUTE_UNUSED) 76 location_t loc ATTRIBUTE_UNUSED)
76 { 77 {
77 return true; 78 return true;
78 } 79 }
79 80
81 /* Default version of TARGET_GET_VALID_OPTION_VALUES. */
82
83 vec<const char *>
84 default_get_valid_option_values (int, const char *)
85 {
86 return vec<const char *> ();
87 }
88
89 /* Default version of TARGET_OPTION_VALIDATE_PARAM. */
90
91 bool
92 default_option_validate_param (const int value ATTRIBUTE_UNUSED,
93 const int param ATTRIBUTE_UNUSED)
94 {
95 return true;
96 }
97
80 const struct default_options empty_optimization_table[] = 98 const struct default_options empty_optimization_table[] =
81 { 99 {
82 { OPT_LEVELS_NONE, 0, NULL, 0 } 100 { OPT_LEVELS_NONE, 0, NULL, 0 }
83 }; 101 };