diff options
author | Daniel Santos <daniel.santos@pobox.com> | 2013-02-22 01:41:45 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-02-22 02:22:16 +0100 |
commit | 1d6a0d19c85587581a364850b77f30446810a560 (patch) | |
tree | f82e7ac260a7705459c77bd37bf2733047542921 /Kbuild | |
parent | bug.h: fix BUILD_BUG_ON macro in __CHECKER__ (diff) | |
download | linux-1d6a0d19c85587581a364850b77f30446810a560.tar.xz linux-1d6a0d19c85587581a364850b77f30446810a560.zip |
bug.h: prevent double evaulation of `condition' in BUILD_BUG_ON
When calling BUILD_BUG_ON in an optimized build using gcc 4.3 and later,
the condition will be evaulated twice, possibily with side-effects. This
patch eliminates that error.
[akpm@linux-foundation.org: tweak code layout]
Signed-off-by: Daniel Santos <daniel.santos@pobox.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Borislav Petkov <bp@alien8.de>
Cc: David Rientjes <rientjes@google.com>
Cc: Joe Perches <joe@perches.com>
Cc: Josh Triplett <josh@joshtriplett.org>
Cc: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Kbuild')
0 files changed, 0 insertions, 0 deletions