aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-operands.c
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2009-09-05 15:15:16 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2009-09-05 15:15:16 +0000
commit432b4b3129cd15f0971a0bbc9c1518d96ea6a4ae (patch)
tree7fdf591534a02feeaf7c1ad761bf7bab13b700f6 /gcc/tree-ssa-operands.c
parent575140c2f29ee35893f4551ca20f15a587c1727b (diff)
downloadgcc-432b4b3129cd15f0971a0bbc9c1518d96ea6a4ae.zip
gcc-432b4b3129cd15f0971a0bbc9c1518d96ea6a4ae.tar.gz
gcc-432b4b3129cd15f0971a0bbc9c1518d96ea6a4ae.tar.bz2
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
Diffstat (limited to 'gcc/tree-ssa-operands.c')
-rw-r--r--gcc/tree-ssa-operands.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/tree-ssa-operands.c b/gcc/tree-ssa-operands.c
index ac84fb9..16f4a43 100644
--- a/gcc/tree-ssa-operands.c
+++ b/gcc/tree-ssa-operands.c
@@ -735,8 +735,8 @@ static void
get_tmr_operands (gimple stmt, tree expr, int flags)
{
/* First record the real operands. */
- get_expr_operands (stmt, &TMR_BASE (expr), opf_use);
- get_expr_operands (stmt, &TMR_INDEX (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 | (flags & opf_no_vops));
if (TMR_SYMBOL (expr))
mark_address_taken (TMR_SYMBOL (expr));