https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69027

--- Comment #2 from Sebastian Huber <sebastian.hu...@embedded-brains.de> ---
I have an admittedly quite exotic use case where it hurts.

I changed a switch statement to adaptor functions in RTEMS to avoid dead code,
e.g.

https://git.rtems.org/rtems/diff/cpukit/score/src/threadhandler.c?id=ccd54344d904b657123e4e4ba795a32212382be2

The _Thread_Handler() function in RTEMS calls the thread entry function. Since
threads normally don't return every space used on the stack in this area is
lost.  Due to the change from the switch to a function call we waste now 96
bytes of space grade RAM for each thread.

Reply via email to