projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
68c1abf
)
re PR tree-optimization/22171 (gcc-4.0-20050623 internal compiler error in linux...
author
Mark Mitchell
<mmitchel@gcc.gnu.org>
Fri, 24 Jun 2005 13:52:35 +0000
(13:52 +0000)
committer
Mark Mitchell
<mmitchel@gcc.gnu.org>
Fri, 24 Jun 2005 13:52:35 +0000
(13:52 +0000)
PR 22171
* tree-ssa-operands (get_expr_operands): Check s_ann for NULL
before use.
From-SVN: r101293
gcc/tree-ssa-operands.c
patch
|
blob
|
history
diff --git
a/gcc/tree-ssa-operands.c
b/gcc/tree-ssa-operands.c
index 2e263cfa1b30c1c38f56226c7aa0063a3929381e..ecd32a6b4f0248f49425748de027e4cc000bad0a 100644
(file)
--- 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);
}