Quoting Steven Bosscher <stevenb....@gmail.com>:
Paul Matos wrote (http://gcc.gnu.org/ml/gcc/2012-10/msg00123.html):
Is there any good way to define TARGET_CANNOT_MODIFY_JUMPS_P such that
jumps are not modified after sched2?
No, there isn't.
Well, you could add a target-specific pass after sched2 with the sole
purpoe of
setting a flag in the machine_function struct.
For simpler prototyping work you could also play with PLUGIN_OVERRIDE_GATE and
use a static/global variable in the target code for the flag.