https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124901
--- Comment #4 from Drea Pinski <pinskia at gcc dot gnu.org> --- (In reply to Uroš Bizjak from comment #3) > FYI: putting another pass_cprop_hardreg after pass_reorder_blocks fails > self-test with: > > cc1: internal compiler error: pass cprop_hardreg does not support cloning > 0x226f97d internal_error(char const*, ...) > ../../git/gcc/gcc/diagnostic-global-context.cc:787 > 0xce6a79 opt_pass::clone() > ../../git/gcc/gcc/passes.cc:90 > 0xcf8a86 gcc::pass_manager::pass_manager(gcc::context*) > ./pass-instances.def:554 > 0xe3a7d7 general_init > ../../git/gcc/gcc/toplev.cc:1164 You have to add a clone method to cprop_hardreg. After that it should just work :).
