pkgsrc-ng/lang/gcc45/patches/patch-gcc_final.c
Lionel Sambuc 612ad0a18c lang/gcc45
2016-01-22 00:09:29 +01:00

17 lines
491 B
C

$NetBSD$
--- gcc/final.c.orig Fri Mar 26 16:18:51 2010
+++ gcc/final.c
@@ -2241,6 +2241,11 @@ final_scan_insn (rtx insn, FILE *file, int optimize AT
location_t loc;
expanded_location expanded;
+ /* Make sure we flush any queued register saves in case this
+ clobbers affected registers. */
+ if (dwarf2out_do_frame ())
+ dwarf2out_frame_debug (insn, false);
+
/* There's no telling what that did to the condition codes. */
CC_STATUS_INIT;