------- Comment #1 from pinskia at gcc dot gnu dot org 2009-05-12 16:05 ------- GCC can already produce good code for overflow catching on x86. I think it is better if you don't use inline-asm for this case at all and just write the overflow detection in C90/C99 (which means don't cause an overflow).
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40124