diff options
author | Michael Ellerman <michael@ellerman.id.au> | 2006-03-23 13:32:24 +0100 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-03-27 05:48:10 +0200 |
commit | e3f94b85f98a346c5eb0ac0d9539b71cb7057143 (patch) | |
tree | 69cc1fcb75d5af9e89c6a28264547bfc5deadd1b /include/asm-powerpc/ppc_asm.h | |
parent | [PATCH] powerpc: fix various sparse warnings (diff) | |
download | linux-e3f94b85f98a346c5eb0ac0d9539b71cb7057143.tar.xz linux-e3f94b85f98a346c5eb0ac0d9539b71cb7057143.zip |
[PATCH] powerpc: Make BUG_ON & WARN_ON play nice with compile-time optimisations
Change BUG_ON and WARN_ON to give the compiler a chance to perform
compile-time optimsations. Depending on the complexity of the condition,
the compiler may not do this very well, so if it's important check the
object code.
Current GCC's (4.x) produce good code as long as the condition does not
include a function call, including a static inline.
Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include/asm-powerpc/ppc_asm.h')
0 files changed, 0 insertions, 0 deletions