c-common.c (handle_malloc_atttribute): Only set DECL_IS_MALLOC if the function return...
authorJames A. Morrison <phython@gcc.gnu.org>
Wed, 6 Apr 2005 21:22:02 +0000 (21:22 +0000)
committerJames A. Morrison <phython@gcc.gnu.org>
Wed, 6 Apr 2005 21:22:02 +0000 (21:22 +0000)
commit3425638af52c359b893547b9dcde5cccd1bb67ac
treec13d1c358e9b4295a74856f820ffd37c7785c650
parent53ae8e14b24bcaf60acdc0d8ee6683ea741cee13
c-common.c (handle_malloc_atttribute): Only set DECL_IS_MALLOC if the function returns a pointer type.

2005-04-06  James A. Morrison  <phython@gcc.gnu.org>

        * c-common.c (handle_malloc_atttribute): Only set DECL_IS_MALLOC if
        the function returns a pointer type.

From-SVN: r97751
gcc/ChangeLog
gcc/c-common.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr15443-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/pr15443-2.c [new file with mode: 0644]