https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85173
--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> --- (In reply to ktkachov from comment #6) > I see what you mean. However, probe_stack and probe_stack_address are not > optabs, they are just pattern names that have a gen_* function. So we can't > call maybe_legitimize_operand on it. Do you think they should be made into > proper optabs or is it not worth the hassle? It doesn't have to be an optab. All you need for maybe_legitimize_operand is the icode, and you have it available, it is targetm.code_for_probe_stack_address and targetm.code_for_probe_stack (of course assuming targetm.have_probe_stack{,_address} () returns true).