On Fri, Oct 1, 2021 at 10:17 AM Eric Botcazou via Gcc-patches <gcc-patches@gcc.gnu.org> wrote: > > Hi, > > this is a regression present on mainline, 11 and 10 branches: on bare-metal > platforms, the Ada compiler emulates stack checking (it is required by the > language and tested by ACATS) in the runtime via the stack_check_libfunc hook > of the RTL middle-end. Calls to the function are generated as libcalls but > they now require a proper function type at -O2 or above. > > Tested on powerpc-elf, OK for mainline, 11 and 10 branches?
OK though I wonder if you could get away with using built_function_type (void_type_node, NULL_TREE); aka a non-prototype void f(). Did you track down what changed the requirement? Thanks, Richard. > > 2021-10-01 Eric Botcazou <ebotca...@adacore.com> > > * explow.c: Include langhooks.h. > (set_stack_check_libfunc): Build a proper function type. > > -- > Eric Botcazou