diff options
author | Martin Liska <mliska@suse.cz> | 2019-11-12 11:10:44 +0100 |
---|---|---|
committer | Martin Liska <marxin@gcc.gnu.org> | 2019-11-12 10:10:44 +0000 |
commit | 8100e93b72dfe82c5f084a3d9351b8ad2ef6ab39 (patch) | |
tree | bc959de4a1ee60b1c2eca1cfdb4b32aa739b7cec /gcc/config | |
parent | 75d6623156d3e69aa1ecc1d91c6a2c6879a97e74 (diff) | |
download | gcc-8100e93b72dfe82c5f084a3d9351b8ad2ef6ab39.zip gcc-8100e93b72dfe82c5f084a3d9351b8ad2ef6ab39.tar.gz gcc-8100e93b72dfe82c5f084a3d9351b8ad2ef6ab39.tar.bz2 |
Remove option_default_params and option_validate_param hooks.
2019-11-12 Martin Liska <mliska@suse.cz>
* common/common-target.def: Remove option_validate_param and
option_default_params.
* common/common-targhooks.c (default_option_validate_param):
Remove.
* common/common-targhooks.h (default_option_validate_param):
Remove.
* common/config/aarch64/aarch64-common.c (TARGET_OPTION_DEFAULT_PARAMS):
Remove usage of this.
(TARGET_OPTION_VALIDATE_PARAM): Likewise.
(aarch64_option_validate_param): Likewise.
(aarch64_option_default_params): Likewise
* common/config/bpf/bpf-common.c (bpf_option_default_params): Likewise.
(TARGET_OPTION_DEFAULT_PARAMS): Likewise.
* common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
(TARGET_OPTION_DEFAULT_PARAMS): Likewise.
* common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
(TARGET_OPTION_DEFAULT_PARAMS): Likewise.
* common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
(TARGET_OPTION_DEFAULT_PARAMS): Likewise.
* common/config/sh/sh-common.c (sh_option_default_params): Likewise.
(TARGET_OPTION_DEFAULT_PARAMS): Likewise.
* config/aarch64/aarch64.c (aarch64_override_options_internal): Validate
guard_size here.
* doc/tm.texi: Remove option_default_params and option_validate_param.
* doc/tm.texi.in: Likewise.
From-SVN: r278090
Diffstat (limited to 'gcc/config')
-rw-r--r-- | gcc/config/aarch64/aarch64.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/gcc/config/aarch64/aarch64.c b/gcc/config/aarch64/aarch64.c index 78e6bc0..d2a3c7e 100644 --- a/gcc/config/aarch64/aarch64.c +++ b/gcc/config/aarch64/aarch64.c @@ -13340,16 +13340,14 @@ aarch64_override_options_internal (struct gcc_options *opts) param_sched_pressure_algorithm, SCHED_PRESSURE_MODEL); - /* If the user hasn't changed it via configure then set the default to 64 KB - for the backend. */ - SET_OPTION_IF_UNSET (opts, &global_options_set, - param_stack_clash_protection_guard_size, - (DEFAULT_STK_CLASH_GUARD_SIZE == 0 - ? 16 : DEFAULT_STK_CLASH_GUARD_SIZE)); - /* Validate the guard size. */ int guard_size = param_stack_clash_protection_guard_size; + if (guard_size != 12 && guard_size != 16) + error ("only values 12 (4 KB) and 16 (64 KB) are supported for guard " + "size. Given value %d (%llu KB) is out of range", + guard_size, (1ULL << guard_size) / 1024ULL); + /* Enforce that interval is the same size as size so the mid-end does the right thing. */ SET_OPTION_IF_UNSET (opts, &global_options_set, |