diff options
author | Michael Ellerman <michael@ellerman.id.au> | 2006-03-23 12:32:24 (GMT) |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-03-27 03:48:10 (GMT) |
commit | e3f94b85f98a346c5eb0ac0d9539b71cb7057143 (patch) | |
tree | 69cc1fcb75d5af9e89c6a28264547bfc5deadd1b /drivers/amba | |
parent | af308377e204e25f1f58627d05fe0f483703b514 (diff) | |
download | linux-e3f94b85f98a346c5eb0ac0d9539b71cb7057143.tar.xz |
[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 'drivers/amba')
0 files changed, 0 insertions, 0 deletions