diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-06-14 09:14:38 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-06-14 09:14:38 +0000 |
commit | ad2637b1d578cab31bb0e252b8fe32d27f5af975 (patch) | |
tree | 6f309bdb08a4acad2b871bdf831bb300a8ea484a /gcc/reorg.c | |
parent | dcde31e253febd5f1dbcc24abf767ea2bf505920 (diff) | |
download | gcc-ad2637b1d578cab31bb0e252b8fe32d27f5af975.tar.gz |
* reorg.c (emit_delay_sequence, dbr_schedule): Clear insn locators
inside delay slots.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@67937 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/reorg.c')
-rw-r--r-- | gcc/reorg.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/gcc/reorg.c b/gcc/reorg.c index 161e7b03ab2..37a82140326 100644 --- a/gcc/reorg.c +++ b/gcc/reorg.c @@ -497,6 +497,12 @@ emit_delay_sequence (insn, list, length) PREV_INSN (tem) = XVECEXP (seq, 0, i - 1); NEXT_INSN (XVECEXP (seq, 0, i - 1)) = tem; + /* SPARC assembler, for instance, emit warning when debug info is output + into the delay slot. */ + if (INSN_LOCATOR (tem) && !INSN_LOCATOR (seq_insn)) + INSN_LOCATOR (seq_insn) = INSN_LOCATOR (tem); + INSN_LOCATOR (tem) = 0; + for (note = REG_NOTES (tem); note; note = next) { next = XEXP (note, 1); @@ -3841,5 +3847,17 @@ dbr_schedule (first, file) } free_resource_info (); free (uid_to_ruid); +#ifdef DELAY_SLOTS_FOR_EPILOGUE + /* SPARC assembler, for instance, emit warning when debug info is output + into the delay slot. */ + { + rtx link; + + for (link = current_function_epilogue_delay_list; + link; + link = XEXP (link, 1)) + INSN_LOCATOR (XEXP (link, 0)) = 0; + } +#endif } #endif /* DELAY_SLOTS */ |