[PATCH 2/2] powerpc: Switch to generic WARN_ON()/BUG_ON()
Scott Wood
scottwood at freescale.com
Fri Oct 12 05:55:44 EST 2007
On Thu, Oct 11, 2007 at 12:14:13PM -0500, Olof Johansson wrote:
> Not using the ppc-specific WARN_ON/BUG_ON constructs actually saves about
> 4K text on a ppc64_defconfig. The main reason seems to be that prepping
> the arguments to the conditional trap instructions is more work than
> just doing a compare and branch.
It'd be nice if we could get GCC to generate bug table entries for
__builtin_trap(); that way we could use GCC's ability to put arbitrary
conditions in the trap instruction.
-Scott
More information about the Linuxppc-dev
mailing list