fix libgomp miscompilation on ppc64

Jakub Jelinek jakub@redhat.com
Wed Jan 25 11:41:00 GMT 2006


On Wed, Jan 25, 2006 at 11:01:27AM +0100, Richard Guenther wrote:
> On 1/25/06, Richard Henderson <rth@redhat.com> wrote:
> > As discussed elsewhere, provides another way for memory barriers
> > to have memory barrier semantics -- that is, conflict with all
> > other memories, even when we could prove they don't overlap.
> >
> > Tested on ppc64-linux.
> 
> Am I right that without this patch the use of the atomic builtins is
> not safe?  Or
> does the problem only affect gomp?

It affects any use of atomic builtins.  While libgomp won't be miscompiled
on gcc-4_1-branch, as it is not present there, user code might be.
So I think it would be desirable to put this fix on gcc-4_1-branch as well.

	Jakub



More information about the Gcc-patches mailing list