]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/c-family/ChangeLog
re PR c++/52215 (__atomic_compare_exchange_n for enumeration type changes signature...
authorJakub Jelinek <jakub@redhat.com>
Mon, 13 Feb 2012 20:12:54 +0000 (21:12 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 13 Feb 2012 20:12:54 +0000 (21:12 +0100)
commite3793c6fb96a83d2d2bd62e0a9d94f879d720270
treef148188cec03c88234c3986c9685d7dbc559628c
parent9abd5ed90b85306b6cfea640c9e01e486bbcddb1
re PR c++/52215 (__atomic_compare_exchange_n for enumeration type changes signature with -m32)

PR c++/52215
* c-common.c (sync_resolve_params): Don't decide whether to convert
or not based on TYPE_SIZE comparison, convert whenever arg_type
is unsigned INTEGER_TYPE.

* g++.dg/ext/atomic-1.C: New test.

From-SVN: r184167
gcc/c-family/ChangeLog
gcc/c-family/c-common.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ext/atomic-1.C [new file with mode: 0644]