re PR target/46915 (Wrong code is generated for conditional branch followed by zero...
authorJohn David Anglin <dave.anglin@nrc-cnrc.gc.ca>
Sat, 18 Dec 2010 17:10:34 +0000 (17:10 +0000)
committerJohn David Anglin <danglin@gcc.gnu.org>
Sat, 18 Dec 2010 17:10:34 +0000 (17:10 +0000)
commit16923e7bf333db732aed3686972b40ac2e458109
tree1e81f7c53d72184586caf1560f886f5fa2696c0d
parentc50ebc7332db306b3b7e122fb5251605db3bcd96
re PR target/46915 (Wrong code is generated for conditional branch followed by zero length asm)

PR target/46915
* config/pa/pa.c (branch_to_delay_slot_p): Use next_active_insn instead
of next_real_insn.  Search forward checking for both ASM_INPUT and
ASM_OPERANDS asms until exit condition is found.
(branch_needs_nop_p): Likewise.
(use_skip_p): New function.
(output_cbranch): Use use_skip_p.
(output_bb, output_bvb): Likewise.

From-SVN: r168026
gcc/ChangeLog
gcc/config/pa/pa.c