re PR c/51256 (ICE with invalid parameter for __atomic builtin)
authorAndrew MacLeod <amacleod@redhat.com>
Fri, 25 Nov 2011 03:00:38 +0000 (03:00 +0000)
committerAndrew Macleod <amacleod@gcc.gnu.org>
Fri, 25 Nov 2011 03:00:38 +0000 (03:00 +0000)
commitc466c4ff909f2a03344110dec66c3c3616e44920
treef590800db7aa391761eac266d2da0c5db7f82ba0
parentc138ee6de212e444155b5facfdd140a670e03df7
re PR c/51256 (ICE with invalid parameter for __atomic builtin)

2011-11-24  Andrew MacLeod  <amacleod@redhat.com>

PR c/51256
* c-common.c (get_atomic_generic_size): Check for various error
conditions
(resolve_overloaded_atomic_exchange,
resolve_overloaded_atomic_compare_exchange,
resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
error_mark_node for error conditions.
* gcc.dg/atomic-pr51256.c: New.  Test error conditions.

From-SVN: r181709
gcc/c-family/ChangeLog
gcc/c-family/c-common.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/atomic-pr51256.c [new file with mode: 0644]