This is the mail archive of the gcc-bugs@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]

[Bug middle-end/50066] [4.7 Regression] Bad signed int to unsigned long long conversion


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50066

--- Comment #12 from Andrew Pinski <pinskia at gcc dot gnu.org> 2011-08-13 18:17:24 UTC ---
(In reply to comment #11)
> Created attachment 25006 [details]
> A patch
> 
> GMP code may be buggy.  But it works with all other compilers,
> including GCC 4.6.0 and older. Is there any particular good
> reason to ignore range overflow?  This patch checks range
> overflow and caused no regressions on Linux/x86.

No Again we decided long ago to have overflow declared as being undefined and
ignoring range overflow is not what we decided.  It might work with other
compilers does not mean it is valid and well defined code.


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