--- Comment #5 from kauer at os dot inf dot tu-dresden dot de 2007-08-28
19:27 ---
(4) abort produce a proper backtrace, if it is not a noreturn function
(5) this optimization could be configurable by something like
-foptimize-noreturns
--
http://gcc.gnu.org/bugzilla/show_bug.cgi
--- Comment #4 from kauer at os dot inf dot tu-dresden dot de 2007-08-28
19:07 ---
Some comments from the outside:
(1) It should be possible to exchange the emmited call into a jmp, without
adding the function epilog.
(2) A proper backtrace is not generated on optimized sibling
--- Comment #21 from kauer at os dot inf dot tu-dresden dot de 2007-07-04
21:50 ---
This simple testcase triggers the bug, too. Unfortunatelly I didnot test the
patch yet.
--
inline void g(int b)
{
register int reg __asm__ ("eax") = 0;
asm volatile ("nop"