]> git.ipfire.org Git - thirdparty/gcc.git/commit
Handle target specific memory models in C frontend
authorak <ak@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 9 Nov 2012 15:24:25 +0000 (15:24 +0000)
committerak <ak@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 9 Nov 2012 15:24:25 +0000 (15:24 +0000)
commit72d65da995cf1ec78d6cfc1de6a2895715120f8f
tree7eb028a1a6f1da03283226a754c2f33692bf6666
parent347d11699fa8adeae77235f79558e56f4b20340b
Handle target specific memory models in C frontend

get_atomic_generic_size would error out for
__atomic_store(...,__ATOMIC_HLE_RELEASE)

Just mask it out. All the memory orders are checked completely
in builtins.c anyways.

I'm not sure what that check is for, it could be removed in theory.

Passed bootstrap and test suite on x86-64

gcc/c-family/:
2012-11-09  Andi Kleen  <ak@linux.intel.com>

PR 55139
* c-common.c (get_atomic_generic_size): Mask with
        MEMMODEL_MASK

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193363 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/c-family/ChangeLog
gcc/c-family/c-common.c