re PR c++/14156 (no warning for address of parameter)
authorAndrew Pinski <pinskia@physics.uc.edu>
Mon, 23 Feb 2004 15:22:04 +0000 (15:22 +0000)
committerAndrew Pinski <pinskia@gcc.gnu.org>
Mon, 23 Feb 2004 15:22:04 +0000 (07:22 -0800)
commita2f1f4c3f688814059d1911878bda275366306fe
tree98bb075b06df549ab40f11fb2ff9565873b0dde8
parentaa5fa0fc223acf9d634ffe311eeab2a825f6971d
re PR c++/14156 (no warning for address of parameter)

        PR c/14156
        * c-typeck.c (c_expand_return): Change check for VAR_DECL
        to use DECL_P instead.

        PR c++/14156
        * typeck.c (maybe_warn_about_returning_address_of_location):
        Change check for VAR_DECL to use DECL_P instead.

From-SVN: r78312
gcc/ChangeLog
gcc/c-typeck.c
gcc/cp/ChangeLog
gcc/cp/typeck.c