http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51094
jimis <jimis at gmx dot net> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |abel at gcc dot gnu.org --- Comment #25 from jimis <jimis at gmx dot net> 2012-07-09 10:03:37 UTC --- I attach a patch almost similar to yours that I think handles the max negative issue (but presumes 2's complement representation, and that HOST_WIDE_INT is always larger or equal type than long). Passed testing on i386, bootstrapped fine on x86_64 multilib, I'd appreciate testing on 32-bit multilib platform.