aboutsummaryrefslogtreecommitdiff
path: root/gcc/common
diff options
context:
space:
mode:
authorGeorg-Johann Lay <avr@gjlay.de>2019-10-17 15:06:22 +0000
committerGeorg-Johann Lay <gjl@gcc.gnu.org>2019-10-17 15:06:22 +0000
commit4c3784ae0fb0a3cc3a3a6c262e6dff0908a0d795 (patch)
tree5bc39326a1c73231feade718a58f7012bc7584ad /gcc/common
parent25e22b199bee93f071e8f16e2f0c0684f7a6fe98 (diff)
downloadgcc-4c3784ae0fb0a3cc3a3a6c262e6dff0908a0d795.zip
gcc-4c3784ae0fb0a3cc3a3a6c262e6dff0908a0d795.tar.gz
gcc-4c3784ae0fb0a3cc3a3a6c262e6dff0908a0d795.tar.bz2
Fix breakage introduced by r276985.
* config/avr/avr.c (avr_option_override): Remove set of PARAM_ALLOW_STORE_DATA_RACES. * common/config/avr/avr-common.c (avr_option_optimization_table) [OPT_LEVELS_ALL]: Turn on -fallow-store-data-races. From-SVN: r277115
Diffstat (limited to 'gcc/common')
-rw-r--r--gcc/common/config/avr/avr-common.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/common/config/avr/avr-common.c b/gcc/common/config/avr/avr-common.c
index 15ba440..dae42e7 100644
--- a/gcc/common/config/avr/avr-common.c
+++ b/gcc/common/config/avr/avr-common.c
@@ -38,6 +38,11 @@ static const struct default_options avr_option_optimization_table[] =
{ OPT_LEVELS_ALL, OPT_fcaller_saves, NULL, 0 },
{ OPT_LEVELS_1_PLUS_NOT_DEBUG, OPT_mgas_isr_prologues, NULL, 1 },
{ OPT_LEVELS_1_PLUS, OPT_mmain_is_OS_task, NULL, 1 },
+ /* Allow optimizer to introduce store data races. This used to be the
+ default -- it was changed because bigger targets did not see any
+ performance decrease. For the AVR though, disallowing data races
+ introduces additional code in LIM and increases reg pressure. */
+ { OPT_LEVELS_ALL, OPT_fallow_store_data_races, NULL, 1 },
{ OPT_LEVELS_NONE, 0, NULL, 0 }
};