This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/45738] [4.6 Regression] ICE: tree check: expected var_decl, have debug_expr_decl in const_value_known_p, at varpool.c:375
- From: "hubicka at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 24 Sep 2010 16:25:03 +0000
- Subject: [Bug middle-end/45738] [4.6 Regression] ICE: tree check: expected var_decl, have debug_expr_decl in const_value_known_p, at varpool.c:375
- Auto-submitted: auto-generated
- References: <bug-45738-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45738
--- Comment #2 from Jan Hubicka <hubicka at gcc dot gnu.org> 2010-09-24 16:24:56 UTC ---
Author: hubicka
Date: Fri Sep 24 16:24:45 2010
New Revision: 164602
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=164602
Log:
PR tree-optimization/45738
PR tree-optimization/45741
* expr.c (string_constant): Allow CONST_DECL too;
check that DECL_INITIAL is set.
* varpool.c (const_value_known_p): Only look into VAR_DECL
and CONST_DECL.
* gcc.c-torture/compile/pr45741.c: New.
* gfortran.fortran-torture/compile/pr45738.f90: New.
Added:
trunk/gcc/testsuite/gcc.c-torture/compile/pr45771.c
trunk/gcc/testsuite/gfortran.fortran-torture/compile/pr45738.f90
Modified:
trunk/gcc/ChangeLog
trunk/gcc/expr.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/varpool.c
--
Configure bugmail: http://gcc.gnu.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.