Commit 432b4b31 by Richard Guenther Committed by Richard Biener

re PR c++/41273 (ICE in add_virtual_operand, at tree-ssa-operands.c:638)

2009-09-05  Richard Guenther  <rguenther@suse.de>

	PR debug/41273
	* tree-ssa-operands.c (get_tmr_operands): Pass through opf_no_vops.

	* g++.dg/torture/pr41273.C: New testcase.

From-SVN: r151454
parent 575140c2
2009-09-05 Richard Guenther <rguenther@suse.de> 2009-09-05 Richard Guenther <rguenther@suse.de>
PR debug/41273
* tree-ssa-operands.c (get_tmr_operands): Pass through opf_no_vops.
2009-09-05 Richard Guenther <rguenther@suse.de>
PR middle-end/41271 PR middle-end/41271
* tree-ssa.c (useless_type_conversion_p): Drop qualifiers * tree-ssa.c (useless_type_conversion_p): Drop qualifiers
before comparing function argument types. before comparing function argument types.
......
2009-09-05 Richard Guenther <rguenther@suse.de>
PR debug/41273
* g++.dg/torture/pr41273.C: New testcase.
2009-09-05 Paul Thomas <pault@gcc.gnu.org> 2009-09-05 Paul Thomas <pault@gcc.gnu.org>
PR fortran/41258 PR fortran/41258
......
/* { dg-do compile } */
/* { dg-options "-g" } */
long *H2_ipX_ener_sort;
double H2_old_populations[2];
double H2_total;
void H2_LevelPops()
{
double sum_pop = 0.;
long nEner = 0;
while( nEner < 3 && sum_pop/H2_total < 0.99999 )
{
long ip = H2_ipX_ener_sort[nEner];
sum_pop += H2_old_populations[ip];
++nEner;
}
}
...@@ -735,8 +735,8 @@ static void ...@@ -735,8 +735,8 @@ static void
get_tmr_operands (gimple stmt, tree expr, int flags) get_tmr_operands (gimple stmt, tree expr, int flags)
{ {
/* First record the real operands. */ /* First record the real operands. */
get_expr_operands (stmt, &TMR_BASE (expr), opf_use); get_expr_operands (stmt, &TMR_BASE (expr), opf_use | (flags & opf_no_vops));
get_expr_operands (stmt, &TMR_INDEX (expr), opf_use); get_expr_operands (stmt, &TMR_INDEX (expr), opf_use | (flags & opf_no_vops));
if (TMR_SYMBOL (expr)) if (TMR_SYMBOL (expr))
mark_address_taken (TMR_SYMBOL (expr)); mark_address_taken (TMR_SYMBOL (expr));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment