summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorotto <otto@openbsd.org>2010-01-30 21:38:42 +0000
committerotto <otto@openbsd.org>2010-01-30 21:38:42 +0000
commite9d864c4ea45b52fd93787b15b72ec831aad0d09 (patch)
treec8de25b17cfb86696bc9c1d3353661f008308e2a
parentfake local addr:port when stdio fowarding as some servers (Tectia at (diff)
downloadwireguard-openbsd-e9d864c4ea45b52fd93787b15b72ec831aad0d09.tar.xz
wireguard-openbsd-e9d864c4ea45b52fd93787b15b72ec831aad0d09.zip
Make sure the previous node is not a NOTE; prevents ICE on loongson.
Actually we should probably look further than just the immediate predecessor here. ok miod@
-rw-r--r--gnu/usr.bin/gcc/gcc/protector.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gnu/usr.bin/gcc/gcc/protector.c b/gnu/usr.bin/gcc/gcc/protector.c
index 8cda801293c..8a708685000 100644
--- a/gnu/usr.bin/gcc/gcc/protector.c
+++ b/gnu/usr.bin/gcc/gcc/protector.c
@@ -2515,6 +2515,7 @@ push_frame_in_operand (insn, orig, push_size, boundary)
else if (XEXP (x, 0) == frame_pointer_rtx
&& GET_CODE (XEXP (x, 1)) == REG
&& PREV_INSN (insn)
+ && !NOTE_P (PREV_INSN (insn))
&& PATTERN (PREV_INSN (insn))
&& SET_DEST (PATTERN (PREV_INSN (insn))) == XEXP (x, 1)
&& CONSTANT_P (SET_SRC (PATTERN (PREV_INSN (insn)))))