[Bug java/31842] [4.2/4.3 Regression] r124338 causes java Divide_1 and pr6388 to fail
daney at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Mon May 7 19:14:00 GMT 2007
------- Comment #4 from daney at gcc dot gnu dot org 2007-05-07 20:14 -------
(In reply to comment #3)
> Thanks for the patch.
>
> I could have sworn that we were compiling libgcj's C++ code with -fwrapv in
> order give CNI code effectively the same integer overflow behaviour as Java. I
> just checked, and we aren't. We really should be -- and I presume that would
> also fix this bug -- but it's perhaps safer to apply this special-case patch.
There are pluses and minuses to adding -fwrapv.
On the plus side, this bug would not have been uncovered (arguably it would not
even be a bug).
On the minus side CNI code ceases to be C++, but has special non-standard
wrapping semantics.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31842
More information about the Java-prs
mailing list