Re: [patch] Fix ICE with stack checking emulation at -O2

2021-10-01 Thread Richard Biener via Gcc-patches
On Fri, Oct 1, 2021 at 10:30 AM Eric Botcazou wrote: > > > 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(). > > See below. > > > Did you track down what changed the requirement? > > The new function-abi.cc

Re: [patch] Fix ICE with stack checking emulation at -O2

2021-10-01 Thread Eric Botcazou via Gcc-patches
> 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(). See below. > Did you track down what changed the requirement? The new function-abi.cc module, so I'd rather have a correct prototype. -- Eric Botcazou

Re: [patch] Fix ICE with stack checking emulation at -O2

2021-10-01 Thread Richard Biener via Gcc-patches
On Fri, Oct 1, 2021 at 10:17 AM Eric Botcazou via Gcc-patches 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

[patch] Fix ICE with stack checking emulation at -O2

2021-10-01 Thread Eric Botcazou via Gcc-patches
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