]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
final.c (final_scan_insn): Guard the call to begin_epilogue debug hook.
authorTristan Gingold <gingold@adacore.com>
Tue, 13 Dec 2011 13:41:12 +0000 (13:41 +0000)
committerTristan Gingold <gingold@gcc.gnu.org>
Tue, 13 Dec 2011 13:41:12 +0000 (13:41 +0000)
2011-12-13  Tristan Gingold  <gingold@adacore.com>

* final.c (final_scan_insn): Guard the call to begin_epilogue
debug hook.

From-SVN: r182282

gcc/ChangeLog
gcc/final.c

index 63b7eacc1216017ab3b9c6601b8956a133eace12..306f9c31762fde497889b469cb827f8cda635a4e 100644 (file)
@@ -1,3 +1,8 @@
+2011-12-13  Tristan Gingold  <gingold@adacore.com>
+
+       * final.c (final_scan_insn): Guard the call to begin_epilogue
+       debug hook.
+
 2011-12-13  Tristan Gingold  <gingold@adacore.com>
 
        * vmsdbgout.c (vmsdbgout_write_source_line): New function.
index 60df6fa70a6f46b682835b225a7edfc4dd5a047c..718caf154bdfb9ccee45e220e730278ba203e982 100644 (file)
@@ -1973,7 +1973,8 @@ final_scan_insn (rtx insn, FILE *file, int optimize_p ATTRIBUTE_UNUSED,
          break;
 
        case NOTE_INSN_EPILOGUE_BEG:
-         (*debug_hooks->begin_epilogue) (last_linenum, last_filename);
+          if (!DECL_IGNORED_P (current_function_decl))
+            (*debug_hooks->begin_epilogue) (last_linenum, last_filename);
          targetm.asm_out.function_begin_epilogue (file);
          break;