* tree.c (build1): Fix off-by-one error.
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 21 Oct 2003 14:24:28 +0000 (14:24 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 21 Oct 2003 14:24:28 +0000 (14:24 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72754 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/tree.c

index 372c3bf..fdba0d3 100644 (file)
@@ -1,3 +1,7 @@
+2003-10-21  Jason Merrill  <jason@redhat.com>
+
+       * tree.c (build1): Fix off-by-one error.
+
 2003-09-28  Robert Millan  <robertmh@gnu.org>
 
        * config/i386/kfreebsdgnu.h: New. i386-*-kfreebsd-gnu definitions.
index fef9826..dd8378e 100644 (file)
@@ -2478,7 +2478,7 @@ build1 (enum tree_code code, tree type, tree node)
              TREE_SIDE_EFFECTS (t) = 0;
              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)
                    {
                      if (TREE_SIDE_EFFECTS (TREE_OPERAND (node, i)))