This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/36021] [4.3/4.4 Regression] __attribute__((alloc_size(n))) with function of no arguments causes gcc to segfault



------- Comment #5 from rguenth at gcc dot gnu dot org  2008-04-23 13:53 -------
Subject: Bug 36021

Author: rguenth
Date: Wed Apr 23 13:52:46 2008
New Revision: 134596

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=134596
Log:
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.

Added:
    branches/gcc-4_3-branch/gcc/testsuite/gcc.dg/attr-alloc_size-2.c
      - copied unchanged from r134595,
trunk/gcc/testsuite/gcc.dg/attr-alloc_size-2.c
Modified:
    branches/gcc-4_3-branch/gcc/ChangeLog
    branches/gcc-4_3-branch/gcc/c-common.c
    branches/gcc-4_3-branch/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36021


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]