]> git.ipfire.org Git - thirdparty/gcc.git/commit
* c-common.h (RETURN_NULLIFIED_P): Lose.
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 10 Aug 2001 14:01:33 +0000 (14:01 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 10 Aug 2001 14:01:33 +0000 (14:01 +0000)
commit4cfd90300764d601a319883f5979fcea67d829a7
treed9f451da73883db76d0425e08382fce4bb154737
parentbba852750618143960eb4faff66df9dfa1c4b715
    * 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@44762 138bc75d-0d04-0410-961f-82ee72b054a4
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