]> git.ipfire.org Git - thirdparty/gcc.git/commit
backport: re PR target/46915 (Wrong code is generated for conditional branch followed...
authorJohn David Anglin <dave.anglin@nrc-cnrc.gc.ca>
Sun, 19 Dec 2010 19:50:17 +0000 (19:50 +0000)
committerJohn David Anglin <danglin@gcc.gnu.org>
Sun, 19 Dec 2010 19:50:17 +0000 (19:50 +0000)
commitae66625916851b5c758893bd361412d2f069d88c
treefcbc1b9dcf53725b212c8e1f1b621e42859b4e1e
parenta9866b8f4c3f2c3f5ac6ac906eb1999542f188f3
backport: re PR target/46915 (Wrong code is generated for conditional branch followed by zero length asm)

Backport from mainline:
2010-12-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>

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: r168072
gcc/ChangeLog
gcc/config/pa/pa.c