Commit 064ee155 by Jason Merrill Committed by Jason Merrill

* tree.c (build1): Fix off-by-one error.

From-SVN: r72754
parent 82c2e3d4
2003-10-21 Jason Merrill <jason@redhat.com>
* tree.c (build1): Fix off-by-one error.
2003-09-28 Robert Millan <robertmh@gnu.org> 2003-09-28 Robert Millan <robertmh@gnu.org>
* config/i386/kfreebsdgnu.h: New. i386-*-kfreebsd-gnu definitions. * config/i386/kfreebsdgnu.h: New. i386-*-kfreebsd-gnu definitions.
......
...@@ -2478,7 +2478,7 @@ build1 (enum tree_code code, tree type, tree node) ...@@ -2478,7 +2478,7 @@ build1 (enum tree_code code, tree type, tree node)
TREE_SIDE_EFFECTS (t) = 0; TREE_SIDE_EFFECTS (t) = 0;
if (!DECL_P (node)) if (!DECL_P (node))
{ {
int i = first_rtl_op (TREE_CODE (node)); int i = first_rtl_op (TREE_CODE (node)) - 1;
for (; i >= 0; --i) for (; i >= 0; --i)
{ {
if (TREE_SIDE_EFFECTS (TREE_OPERAND (node, i))) if (TREE_SIDE_EFFECTS (TREE_OPERAND (node, i)))
......
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