aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMark Mitchell <mmitchel@gcc.gnu.org>2005-06-24 13:52:35 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>2005-06-24 13:52:35 +0000
commit707db096bc8f28e546af88dc4772db4fb688cb04 (patch)
tree7933378180b57968b0b2573b78d5943356963df7 /gcc
parent68c1abf1e0890ed03b7c1d91584193b82cf55714 (diff)
downloadgcc-707db096bc8f28e546af88dc4772db4fb688cb04.zip
gcc-707db096bc8f28e546af88dc4772db4fb688cb04.tar.gz
gcc-707db096bc8f28e546af88dc4772db4fb688cb04.tar.bz2
re PR tree-optimization/22171 (gcc-4.0-20050623 internal compiler error in linux/drivers/serial/8250.c)
PR 22171 * tree-ssa-operands (get_expr_operands): Check s_ann for NULL before use. From-SVN: r101293
Diffstat (limited to 'gcc')
-rw-r--r--gcc/tree-ssa-operands.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-ssa-operands.c b/gcc/tree-ssa-operands.c
index 2e263cf..ecd32a6 100644
--- a/gcc/tree-ssa-operands.c
+++ b/gcc/tree-ssa-operands.c
@@ -1347,7 +1347,7 @@ get_expr_operands (tree stmt, tree *expr_p, int flags)
if (code == COMPONENT_REF)
{
- if (TREE_THIS_VOLATILE (TREE_OPERAND (expr, 1)))
+ if (s_ann && TREE_THIS_VOLATILE (TREE_OPERAND (expr, 1)))
s_ann->has_volatile_ops = true;
get_expr_operands (stmt, &TREE_OPERAND (expr, 2), opf_none);
}