This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] More PR92046 fixes, make --param allow-store-data-races a -f option
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Richard Biener <rguenther at suse dot de>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Tue, 15 Oct 2019 09:24:17 +0200
- Subject: Re: [PATCH] More PR92046 fixes, make --param allow-store-data-races a -f option
- References: <nycvar.YFH.7.76.1910150915300.5566@zhemvz.fhfr.qr>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Tue, Oct 15, 2019 at 09:17:00AM +0200, Richard Biener wrote:
>
> This makes allow-store-data-races adjustable per function by making it
> a regular option rather than a --param.
>
> Bootstrapped and tested on x86_64-unknown-linux-gnu, OK?
LGTM.
> 2019-10-15 Richard Biener <rguenther@suse.de>
>
> PR middle-end/92046
> * common.opt (fallow-store-data-races): New.
> * params.def (PARAM_ALLOW_STORE_DATA_RACES): Remove.
> * params.h (ALLOW_STORE_DATA_RACES): Likewise.
> * doc/invoke.texi (fallow-store-data-races): Document.
> (--param allow-store-data-races): Remove docs.
> * opts.c (default_options_table): Enable -fallow-store-data-races
> at -Ofast.
> (default_options_optimization): Do not enable --param
> allow-store-data-races at -Ofast.
> * tree-if-conv.c (ifcvt_memrefs_wont_trap): Use flag_store_data_races
> instead of PARAM_ALLOW_STORE_DATA_RACES.
> * tree-ssa-loop-im.c (execute_sm): Likewise.
>
> * c-c++-common/cxxbitfields-3.c: Adjust.
> * c-c++-common/cxxbitfields-6.c: Likewise.
> * c-c++-common/simulate-thread/bitfields-1.c: Likewise.
> * c-c++-common/simulate-thread/bitfields-2.c: Likewise.
> * c-c++-common/simulate-thread/bitfields-3.c: Likewise.
> * c-c++-common/simulate-thread/bitfields-4.c: Likewise.
> * g++.dg/simulate-thread/bitfields-2.C: Likewise.
> * g++.dg/simulate-thread/bitfields.C: Likewise.
> * gcc.dg/lto/pr52097_0.c: Likewise.
> * gcc.dg/simulate-thread/speculative-store-2.c: Likewise.
> * gcc.dg/simulate-thread/speculative-store-3.c: Likewise.
> * gcc.dg/simulate-thread/speculative-store-4.c: Likewise.
> * gcc.dg/simulate-thread/speculative-store.c: Likewise.
> * gcc.dg/tree-ssa/20050314-1.c: Likewise.
Jakub