This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch,avr] Fix avr build broken by r276985.
- From: Richard Biener <rguenther at suse dot de>
- To: Georg-Johann Lay <avr at gjlay dot de>
- Cc: Eric Botcazou <ebotcazou at adacore dot com>, gcc-patches at gcc dot gnu dot org, Denis Chertykov <chertykov at gmail dot com>
- Date: Thu, 17 Oct 2019 14:19:06 +0200 (CEST)
- Subject: Re: [patch,avr] Fix avr build broken by r276985.
- References: <19818313-26f0-c675-79b2-d7e3d284a2f3@gjlay.de> <12184095.h7XpqS47Sx@polaris> <535ab3b9-65e1-5984-377f-14dfa9cd0758@gjlay.de>
On Thu, 17 Oct 2019, Georg-Johann Lay wrote:
> Am 10/17/19 um 1:22 PM schrieb Eric Botcazou:
> >> r276985 broke avr because it removed PARAM_ALLOW_STORE_DATA_RACES from
> >> --params. The patch fixes that by using flag_store_data_races = 1 instead.
> >
> > Note that you'll unconditionally override the user, unlike the original
> > code.
>
> You're right. What about this one?
LGTM.
> Johann
>
>
> 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.
>
>
--
Richard Biener <rguenther@suse.de>
SUSE Software Solutions Germany GmbH, Maxfeldstrasse 5, 90409 Nuernberg,
Germany; GF: Felix Imendörffer; HRB 36809 (AG Nuernberg)