From: Michael Ellerman Date: Thu, 23 Mar 2006 12:32:24 +0000 (+1100) Subject: [PATCH] powerpc: Make BUG_ON & WARN_ON play nice with compile-time optimisations X-Git-Tag: v2.6.17-rc1~165^2~62 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e3f94b85f98a346c5eb0ac0d9539b71cb7057143;p=pandora-kernel.git [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 Signed-off-by: Paul Mackerras --- Reading git-diff-tree failed