aboutsummaryrefslogtreecommitdiff
path: root/include/asm-powerpc/firmware.h
diff options
context:
space:
mode:
authorMichael Ellerman <michael@ellerman.id.au>2006-03-23 23:32:24 +1100
committerPaul Mackerras <paulus@samba.org>2006-03-27 14:48:10 +1100
commite3f94b85f98a346c5eb0ac0d9539b71cb7057143 (patch)
tree69cc1fcb75d5af9e89c6a28264547bfc5deadd1b /include/asm-powerpc/firmware.h
parentaf308377e204e25f1f58627d05fe0f483703b514 (diff)
[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/firmware.h')
0 files changed, 0 insertions, 0 deletions