[PATCH] tell gcc optimizer to never introduce new data races

Peter Zijlstra peterz@infradead.org
Tue Jun 10 15:13:00 GMT 2014


On Tue, Jun 10, 2014 at 05:04:55PM +0200, Marek Polacek wrote:
> On Tue, Jun 10, 2014 at 04:53:27PM +0200, Peter Zijlstra wrote:
> > 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?
> 
> Note that the option does not exist, even though it is mentioned in the
> documentation.

Urgh.. ok. Any word on the packed-store-data thing?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20140610/1109c45d/attachment.sig>


More information about the Gcc mailing list