re PR c/36021 (__attribute__((alloc_size(n))) with function of no arguments causes...
authorRichard Guenther <rguenther@suse.de>
Wed, 23 Apr 2008 13:47:38 +0000 (13:47 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 23 Apr 2008 13:47:38 +0000 (13:47 +0000)
commitf3f75f693d12f58acbb37d393280081621eb3f58
tree0ec573150b9f8a82ee9900eae5388c150fd6adc9
parent09725d5e8d80ae185255eaa51f16570869f413bc
re PR c/36021 (__attribute__((alloc_size(n))) with function of no arguments causes gcc to segfault)

2008-04-23  Richard Guenther  <rguenther@suse.de>

PR middle-end/36021
* c-common.c (handle_alloc_size_attribute): Use type_num_arguments.

* gcc.dg/attr-alloc_size-2.c: New testcase.

From-SVN: r134595
gcc/ChangeLog
gcc/c-common.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/attr-alloc_size-2.c [new file with mode: 0644]