This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Could not build libstdc++-v3 with --target=sh-elf
- To: aoliva at redhat dot com (Alexandre Oliva)
- Subject: Re: Could not build libstdc++-v3 with --target=sh-elf
- From: Joern Rennecke <amylaar at cambridge dot redhat dot com>
- Date: Sat, 13 Jan 2001 01:53:36 +0000 (GMT)
- Cc: amylaar at cambridge dot redhat dot com (Joern Rennecke),gcc-patches at gcc dot gnu dot org, amylaar at redhat dot com
> + && (jump_to_next || next_real_insn (JUMP_LABEL (prev)) == next
> + /* If relax_delay_slots() decides NEXT was redundant
> + with some previous instruction, it will have
> + redirected PREV's jump to the following insn. */
> + || JUMP_LABEL (prev) == next_nonnote_insn (next)))
You have to qualify this with '&& mdep_reorg_phase > SH_SHORTEN_BRANCHES1'.
Or, even better, verify that the target label was indeed generated by after
machine_dependent_reorg. You could probably stash away max_insn_uid
at the end of machine_dependent_reorg for that test; you'll still need
to check that this assignment has been made, though, and the above
mdep_reorg_phase would be good for that too. But then you can eliminate
the jump_to_next code.