From 1c50a20a4f81b9fc6a4451b8951c290bb57cd637 Mon Sep 17 00:00:00 2001 From: Andrew Pinski <andrew_pinski@playstation.sony.com> Date: Wed, 19 Sep 2007 22:16:22 +0000 Subject: [PATCH] cfgexpand.c (dump_stack_var_partition): Use the correct index for the offset. 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 | 5 +++++ gcc/cfgexpand.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7df46292ccf4..f336b1242272 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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. diff --git a/gcc/cfgexpand.c b/gcc/cfgexpand.c index 69c65bd5e498..e550a4c8b7eb 100644 --- a/gcc/cfgexpand.c +++ b/gcc/cfgexpand.c @@ -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); } } } -- GitLab