[i'd like to add Joern to CC list because this is based on his patch.] Hi,
This patch series is to fix PR target/64761 which is formally a 4.9/5 regression. The fix is splitted into 3 pieces: [PATCH 1/3] Replace MD_REDIRECT_BRANCH with TARGET_CAN_FOLLOW_JUMP [PATCH 2/3] [SH] Add jump insn for -freorder-blocks-and-partition [PATCH 3/3] Fix dbr_schedule for -freorder-blocks-and-partition The patches are tested on sh4-unknown-linux-gnu and i686-pc-linux-gnu with "make -k check" and "make info dvi pdf". Also tested on arc-elf32 because arc is another user of TARGET_CAN_FOLLOW_JUMP, though I could test it with --enable-languages=c only. For arc-elf32, I've got Old tests that failed, that have disappeared: (Eeek!) arc-sim: gcc.dg/tree-prof/20041218-1.c compilation, -fprofile-use -D_PROFILE_USE with compare_tests for unpatched/patched trunk compilers. Regards, kaz