summaryrefslogtreecommitdiff
path: root/gnu/egcs/gcc/protector.c
diff options
context:
space:
mode:
authorHiroaki Etoh <etoh@cvs.openbsd.org>2004-04-19 01:09:01 +0000
committerHiroaki Etoh <etoh@cvs.openbsd.org>2004-04-19 01:09:01 +0000
commit7d3eba2e7156aa07390c53a29dd9310830954f91 (patch)
treecf8bcf395df6b5855992a16851581a85838dedeb /gnu/egcs/gcc/protector.c
parent035301d3f2d8e01fdca091c02d1e4a52958d4699 (diff)
fix mysql bug: http://bugs.mysql.com/bug.php?id=1442
changed the order of array relocation with the depth first order of variable sco pe. ok pvalchev@
Diffstat (limited to 'gnu/egcs/gcc/protector.c')
-rw-r--r--gnu/egcs/gcc/protector.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gnu/egcs/gcc/protector.c b/gnu/egcs/gcc/protector.c
index ea2b65fa55d..eac869f8b91 100644
--- a/gnu/egcs/gcc/protector.c
+++ b/gnu/egcs/gcc/protector.c
@@ -912,6 +912,9 @@ arrange_var_order (block)
while (block)
{
+ /* arrange the location of character arrays in depth first. */
+ arrange_var_order (BLOCK_SUBBLOCKS (block));
+
types = BLOCK_VARS (block);
while (types)
@@ -969,8 +972,6 @@ arrange_var_order (block)
types = TREE_CHAIN(types);
}
- arrange_var_order (BLOCK_SUBBLOCKS (block));
-
block = BLOCK_CHAIN (block);
}
}