OSDN Git Service

dwarf2out: Add REG_CFA_FLUSH_QUEUE.
[pf3gnuchains/gcc-fork.git] / gcc / final.c
index cb4a83d..c0c1fc8 100644 (file)
@@ -2683,7 +2683,9 @@ final_scan_insn (rtx insn, FILE *file, int optimize_p ATTRIBUTE_UNUSED,
 
        current_output_insn = debug_insn = insn;
 
-       if (CALL_P (insn) && dwarf2out_do_frame ())
+       if (dwarf2out_do_frame ()
+           && (CALL_P (insn)
+               || find_reg_note (insn, REG_CFA_FLUSH_QUEUE, NULL)))
          dwarf2out_frame_debug (insn, false);
 
        /* Find the proper template for this insn.  */