This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Autoconf manual's coverage of signed integer overflow & portability


Andrew Pinski writes:
 > 
 > This will always cause a trap on x86, even with -fwrapv so really
 > -fwrapv has a bug on x86.  I will file this bug sometime later
 > tomorrow.  Oh and fixing this bug will actually slow down users
 > of -fwrapv even more than what it is currently does because
 > you can no longer use the div instruction.

Actually, you can still use div, but it's rather tricky.  There's some
code in libgcj to handle this very situation.

Andrew.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]