[Bug target/85173] ICE in in extract_insn, at recog.c:2304 for -fstack-clash-protection on ARM

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Apr 4 09:10:00 GMT 2018


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).


More information about the Gcc-bugs mailing list