summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2012-12-12 20:54:54 +0000
committermiod <miod@openbsd.org>2012-12-12 20:54:54 +0000
commite1f2450cb0657be3bf70e03ded4ff5ba222fa83d (patch)
treec284cf6d302939917a3e4108f4d56d58562fad07
parentRearrange the code a bit to prevent splx() from being called with an (diff)
downloadwireguard-openbsd-e1f2450cb0657be3bf70e03ded4ff5ba222fa83d.tar.xz
wireguard-openbsd-e1f2450cb0657be3bf70e03ded4ff5ba222fa83d.zip
Previous commit introduced a bug; only return early from m88k_layout_frame()
if reload_completed; INITIAL_ELIMINATION_OFFSET() invokes it (which is very likely a source for more bugs, to be investigated)
-rw-r--r--gnu/usr.bin/gcc/gcc/config/m88k/m88k.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gnu/usr.bin/gcc/gcc/config/m88k/m88k.c b/gnu/usr.bin/gcc/gcc/config/m88k/m88k.c
index 60ce644f4b1..70e5cd3d0f5 100644
--- a/gnu/usr.bin/gcc/gcc/config/m88k/m88k.c
+++ b/gnu/usr.bin/gcc/gcc/config/m88k/m88k.c
@@ -1838,7 +1838,7 @@ m88k_layout_frame ()
{
int regno, sp_size;
- if (frame_laid_out)
+ if (frame_laid_out && reload_completed)
return;
frame_laid_out = 1;