re PR middle-end/80020 (gcc confused about aligned_alloc argument order)
authorMartin Sebor <msebor@redhat.com>
Tue, 14 Mar 2017 22:16:27 +0000 (22:16 +0000)
committerJeff Law <law@gcc.gnu.org>
Tue, 14 Mar 2017 22:16:27 +0000 (16:16 -0600)
commit5d9a283ac6aaa10d7f1052dba4cde7a8a63c88fc
treef36c32b1806b1bccfa8cb3918937f113e48bffd9
parent6bf29a7e402c9650a0feeb00038f873adc7cd309
re PR middle-end/80020 (gcc confused about aligned_alloc argument order)

PR middle-end/80020
* builtin-attrs.def (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): New macro.
* builtins.def (aligned_alloc): Use it.

PR middle-end/80020
* gcc.dg/attr-alloc_size-6.c: Correct aligned_alloc argument order.
* gcc.dg/attr-alloc_size-7.c: Same.
* gcc.dg/attr-alloc_size-9.c: Same.
* gcc.dg/builtin-alloc-size.c: Same.
* gcc.dg/pr80020.c: New test.

From-SVN: r246145
gcc/ChangeLog
gcc/builtin-attrs.def
gcc/builtins.def
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/attr-alloc_size-6.c
gcc/testsuite/gcc.dg/attr-alloc_size-7.c
gcc/testsuite/gcc.dg/attr-alloc_size-9.c
gcc/testsuite/gcc.dg/builtin-alloc-size.c
gcc/testsuite/gcc.dg/pr80020.c [new file with mode: 0644]