cfgexpand.c (dump_stack_var_partition): Use the correct index for the offset.
authorAndrew Pinski <andrew_pinski@playstation.sony.com>
Wed, 19 Sep 2007 22:16:22 +0000 (22:16 +0000)
committerAndrew Pinski <pinskia@gcc.gnu.org>
Wed, 19 Sep 2007 22:16:22 +0000 (15:16 -0700)
2007-09-19  Andrew Pinski  <andrew_pinski@playstation.sony.com>

        * cfgexpand.c (dump_stack_var_partition): Use the correct
        index for the offset.

From-SVN: r128607

gcc/ChangeLog
gcc/cfgexpand.c

index 7df46292ccf4a597a0a9379fa4a213f46fbd4b1b..f336b12422722d1407343fec9454d4e9a74e416a 100644 (file)
@@ -1,3 +1,8 @@
+2007-09-19  Andrew Pinski  <andrew_pinski@playstation.sony.com>
+
+       * cfgexpand.c (dump_stack_var_partition): Use the correct
+       index for the offset.
+
 2007-09-19  Joseph Myers  <joseph@codesourcery.com>
 
        * config/mips/sde.h: Switch to GPLv3.
index 69c65bd5e498c4a5eaf084ecf3b587868bd6f289..e550a4c8b7eb0148a55bb71b201131192b43e69f 100644 (file)
@@ -512,7 +512,7 @@ dump_stack_var_partition (void)
          fputc ('\t', dump_file);
          print_generic_expr (dump_file, stack_vars[j].decl, dump_flags);
          fprintf (dump_file, ", offset " HOST_WIDE_INT_PRINT_DEC "\n",
-                  stack_vars[i].offset);
+                  stack_vars[j].offset);
        }
     }
 }