From 035301d3f2d8e01fdca091c02d1e4a52958d4699 Mon Sep 17 00:00:00 2001 From: Hiroaki Etoh Date: Mon, 19 Apr 2004 01:06:40 +0000 Subject: fix mysql bug: http://bugs.mysql.com/bug.php?id=1442 changed the order of array relocation with the depth first order of variable scope. ok pvalchev@ --- gnu/usr.bin/gcc/gcc/protector.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'gnu/usr.bin/gcc') diff --git a/gnu/usr.bin/gcc/gcc/protector.c b/gnu/usr.bin/gcc/gcc/protector.c index 5e7cdbcffb4..fb8970dc9d2 100644 --- a/gnu/usr.bin/gcc/gcc/protector.c +++ b/gnu/usr.bin/gcc/gcc/protector.c @@ -936,6 +936,9 @@ arrange_var_order (block) while (block && TREE_CODE(block)==BLOCK) { + /* arrange the location of character arrays in depth first. */ + arrange_var_order (BLOCK_SUBBLOCKS (block)); + types = BLOCK_VARS (block); while (types) @@ -991,8 +994,6 @@ arrange_var_order (block) types = TREE_CHAIN(types); } - arrange_var_order (BLOCK_SUBBLOCKS (block)); - block = BLOCK_CHAIN (block); } } -- cgit v1.2.3