This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/78016] REG_NOTE order is not kept during insn copy
- From: "ebotcazou at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 18 Oct 2016 09:21:27 +0000
- Subject: [Bug middle-end/78016] REG_NOTE order is not kept during insn copy
- Auto-submitted: auto-generated
- References: <bug-78016-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78016
Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2016-10-18
Ever confirmed|0 |1
--- Comment #1 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
> I attached a simply fix to keep REG-NOTE order during insn copy.
>
> Any comments?
This seems reasonable if you need it for the DWARF CFI stuff, but note that
emit_copy_of_insn_after is not the only place where notes are copied, e.g.
try_split or create_copy_of_insn_rtx does that too.