Re: [PATCH] tell gcc optimizer to never introduce new data races
From: Peter Zijlstra
Date: Tue Jun 10 2014 - 10:53:35 EST
On Tue, Jun 10, 2014 at 03:23:36PM +0200, Jiri Kosina wrote:
> +# Tell gcc to never replace conditional load with a non-conditional one
> +KBUILD_CFLAGS += $(call cc-option,--param allow-store-data-races=0)
> +
Why do we not want: -fmemory-model=safe? And should we not at the very
least also disable packed-store-data-races?
Attachment:
pgpAjydEaN5hd.pgp
Description: PGP signature