From 8bd0572f345c2edee3634d94a1f21023666fc132 Mon Sep 17 00:00:00 2001 From: "mostang.com!davidm" Date: Thu, 27 Feb 2003 09:58:57 +0000 Subject: [PATCH] (build_script): Document the fact that we need IA64_REG_PSP to get compiled first. (Logical change 1.56) --- src/ia64/Gscript-ia64.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/ia64/Gscript-ia64.c b/src/ia64/Gscript-ia64.c index 65997d01..004135c8 100644 --- a/src/ia64/Gscript-ia64.c +++ b/src/ia64/Gscript-ia64.c @@ -375,7 +375,12 @@ build_script (struct cursor *c, struct ia64_script *script) compile_reg (&sr, i, script); - for (i = IA64_REG_BSP; i < IA64_NUM_PREGS; ++i) + /* Note: it's important here that IA64_REG_PSP gets compiled first + because later save-locations may depend on it's correct (updated) + value. Fixed-size frames are handled speciall (see above), but + variable-size frames get handled as part of the normal + compile_reg(). */ + for (i = IA64_REG_PSP; i < IA64_NUM_PREGS; ++i) compile_reg (&sr, i, script); if (sr.is_signal_frame)