From c6fc44f364be516ab4c2043de5d8999c961a279d Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Thu, 28 Apr 2011 19:01:02 +0200 Subject: [PATCH] re PR middle-end/48597 (x86-64 unwind register save location misses half-register write?) PR middle-end/48597 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for inline asm. From-SVN: r173120 --- gcc/ChangeLog | 6 ++++++ gcc/final.c | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d50ad4ea28d..eb6cc3a99c9 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2011-04-28 Jakub Jelinek + + PR middle-end/48597 + * final.c (final_scan_insn): Call dwarf2out_frame_debug even for + inline asm. + 2011-04-28 Joseph Myers * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* | diff --git a/gcc/final.c b/gcc/final.c index df5d7d5e681..7e1ae902477 100644 --- a/gcc/final.c +++ b/gcc/final.c @@ -2313,6 +2313,11 @@ final_scan_insn (rtx insn, FILE *file, int optimize_p ATTRIBUTE_UNUSED, 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; -- 2.30.2