This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug optimization/11269] [tree-ssa] wrong-code
- From: "cvs-commit at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Nov 2003 00:31:08 -0000
- Subject: [Bug optimization/11269] [tree-ssa] wrong-code
- References: <20030620183319.11269.reichelt@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2003-11-17 00:31 -------
Subject: Bug 11269
CVSROOT: /cvs/gcc
Module name: gcc
Branch: tree-ssa-20020619-branch
Changes by: jason@gcc.gnu.org 2003-11-17 00:31:03
Modified files:
gcc : ChangeLog.tree-ssa dwarf2out.c tree-inline.c
c-common.c gimplify.c
gcc/cp : ChangeLog.tree-ssa semantics.c decl.c tree.c
cp-tree.h
Log message:
PR optimization/11269
* semantics.c (finalize_nrv_r): Rename from nullify_returns_r.
Also replace uses of the nrv with our RESULT_DECL.
(cxx_expand_function_start): Don't mess with the nrv.
(finalize_nrv): New fn.
* cp-tree.h: Declare it.
* decl.c (finish_function): Call it.
* tree.c (cp_copy_res_decl_for_inlining): Don't mess with the nrv.
* dwarf2out.c (gen_subprogram_die): Generate a DIE for a named
return value.
(loc_descriptor_from_tree): Treat RESULT_DECL like VAR_DECL.
(add_location_or_const_value_attribute): Likewise.
(add_bound_info): Likewise.
(gen_decl_die): Likewise.
* tree-inline.c (walk_tree): Don't walk into the BIND_EXPR_VARS
of a BIND_EXPR.
* c-common.c (c_walk_subtrees): Don't walk into the decl of a
DECL_STMT.
* gimplify.c (mostly_copy_tree_r): Don't walk into a BLOCK.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.tree-ssa.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=1.1.2.874&r2=1.1.2.875
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/dwarf2out.c.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=1.379.2.30&r2=1.379.2.31
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree-inline.c.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=1.26.2.61&r2=1.26.2.62
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-common.c.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=1.344.2.50&r2=1.344.2.51
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/gimplify.c.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=1.1.2.115&r2=1.1.2.116
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.tree-ssa.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=1.1.2.51&r2=1.1.2.52
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/semantics.c.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=1.264.2.39&r2=1.264.2.40
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/decl.c.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=1.911.2.55&r2=1.911.2.56
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/tree.c.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=1.286.2.37&r2=1.286.2.38
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/cp-tree.h.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=1.719.2.41&r2=1.719.2.42
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11269