Signed overflow optimization hazards in the kernel
Signed overflow optimization hazards in the kernel
Posted Aug 20, 2012 8:59 UTC (Mon) by etienne (guest, #25256)Parent article: Signed overflow optimization hazards in the kernel
> So it is not too early to start future-proofing the Linux kernel by removing its reliance on signed integer overflow!
Would be nice to have a GCC option for ia32 so that any "add" used for signed arithmetic is followed with "into" (exception if overflow).
It will not slow too much the execution ("into" will not be predicted as a taken jump), and could help locate potential problems...
