[POWERPC] mark BUG() as noreturn

Jimi Xenidis jimix at watson.ibm.com
Thu Sep 21 22:18:47 EST 2006


On Sep 21, 2006, at 12:55 AM, Stephen Rothwell wrote:

> From an idea from Michael Ellerman.
>
> We finish the BUG() macro with a call to a function marked with  
> attribute
> "noreturn" so that the compiler will know that BUG() and BUG_ON()
> (with a constant, non-zero argument) will not return.

But BUG() _can_ return, if I have a probe, xmon or kgdb configured it  
is possible  to play with the state of the world and try to continue/ 
recover, (xmon "x" command).  IMHO, this is a powerful debugging  
scenario.

Why are we concerned with the performance of this anyway?

-JX



More information about the Linuxppc-dev mailing list