This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/53239] [4.7/4.8 Regression] VRP vs named value return opt
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 07 May 2012 13:33:34 +0000
- Subject: [Bug tree-optimization/53239] [4.7/4.8 Regression] VRP vs named value return opt
- Auto-submitted: auto-generated
- References: <bug-53239-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53239
--- Comment #14 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-05-07 13:33:34 UTC ---
Author: jakub
Date: Mon May 7 13:33:27 2012
New Revision: 187241
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=187241
Log:
PR tree-optimization/53239
* tree-vrp.c (get_value_range): Set VR of
SSA_NAME_IS_DEFAULT_DEF of DECL_BY_REFERENCE RESULT_DECL
to nonnull.
* g++.dg/opt/vrp3.C: New test.
* g++.dg/opt/vrp3-aux.cc: New file.
* g++.dg/opt/vrp3.h: New file.
Added:
branches/gcc-4_7-branch/gcc/testsuite/g++.dg/opt/vrp3-aux.cc
branches/gcc-4_7-branch/gcc/testsuite/g++.dg/opt/vrp3.C
branches/gcc-4_7-branch/gcc/testsuite/g++.dg/opt/vrp3.h
Modified:
branches/gcc-4_7-branch/gcc/ChangeLog
branches/gcc-4_7-branch/gcc/testsuite/ChangeLog
branches/gcc-4_7-branch/gcc/tree-vrp.c