This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Could not build libstdc++-v3 with --target=sh-elf


> +	  && (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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]