]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/cp/semantics.c
c-common.h (RETURN_NULLIFIED_P): Lose.
authorJason Merrill <jason@redhat.com>
Fri, 10 Aug 2001 14:01:33 +0000 (10:01 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 10 Aug 2001 14:01:33 +0000 (10:01 -0400)
commit07b2f2fd6efdf33ab13eb31fc8ea38668dbf6ed6
treed9f451da73883db76d0425e08382fce4bb154737
parent67070ffeb0f10bcc841e87756d18eb85de1ab8a8
c-common.h (RETURN_NULLIFIED_P): Lose.

        * c-common.h (RETURN_NULLIFIED_P): Lose.
        * c-semantics.c (genrtl_return_stmt): Don't check it.

        Support named return value optimization for inlines, too.
        * decl.c (finish_function): Nullify returns here.
        * semantics.c (genrtl_start_function): Not here.
        (cp_expand_stmt): Don't mess with CLEANUP_STMTs.
        (nullify_returns_r): No longer static.  Just clear RETURN_EXPR.
        Also nullify the CLEANUP_STMT for the nrv.
        * cp-tree.h: Declare it.
        * optimize.c (declare_return_variable): Replace the nrv with the
        return variable.
        * typeck.c (check_return_expr): Be more flexible on alignment check.
        Ignore cv-quals when checking for a matching type.

From-SVN: r44762
gcc/ChangeLog
gcc/c-common.h
gcc/c-semantics.c
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/decl.c
gcc/cp/optimize.c
gcc/cp/semantics.c
gcc/cp/typeck.c