On Sun, Dec 11, 2011 at 2:25 AM, Christoffer Dall < c.dall at virtualopensystems.com> wrote: > From: Christoffer Dall <cdall at cs.columbia.edu> > [...] > + /* Test that the compiler used arithmetic right > shift > + * for signed values. */ > + asr_test = 0xffffffff; > + BUG_ON((asr_test >> 2) >= 0); > If the compiler doesn't actually optimize this (and the duplicate below) out, perhaps move it to a one-time initialization function? If it does optimize it out, perhaps BUILD_BUG_ON(...) ? -------------- next part -------------- An HTML attachment was scrubbed... URL: https://lists.cs.columbia.edu/pipermail/android-virt/attachments/20111213/cf9e7486/attachment.html