[Bug rtl-optimization/60651] Mode switching instructions are sometimes emitted in the wrong order
amylaar at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Apr 11 18:13:00 GMT 2014
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60651
--- Comment #4 from Jorn Wolfgang Rennecke <amylaar at gcc dot gnu.org> ---
Author: amylaar
Date: Fri Apr 11 18:12:53 2014
New Revision: 209312
URL: http://gcc.gnu.org/viewcvs?rev=209312&root=gcc&view=rev
Log:
gcc:
PR rtl-optimization/60651
* mode-switching.c (optimize_mode_switching): Make sure to emit
sets of a lower numbered entity before sets of a higher numbered
entity to a mode of the same or lower priority.
When creating a seginfo for a basic block that starts with a code
label, move the insertion point past the code label.
(new_seginfo): Document and enforce requirement that
NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
* doc/tm.texi.in: Document ordering constraint for emitted mode sets.
* doc/tm.texi: Regenerate.
gcc/testsuite:
PR rtl-optimization/60651
* gcc.target/epiphany/mode-switch.c: New test.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/doc/tm.texi
trunk/gcc/doc/tm.texi.in
trunk/gcc/mode-switching.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list