Hi Eric,
On 16/05/16 09:40, Eric Botcazou wrote:
Hi,
-fstack-usage issues the "not supported by this target" warning on naked
functions because the prologue routines do an early return for them.
Tested on arm-eabi, may I apply it on all active branches?
2016-05-16 Eric Botcazou <ebotca...@adacore.com>
* config/arm/arm.c (arm_expand_prologue): Set the stack usage to 0
for naked functions.
(thumb1_expand_prologue): Likewise.
Ok.
Considering the use of current_function_static_stack_size in output_stack_usage
this definitely looks sensible and safe.
Thanks,
Kyrill