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 bootstrap/49914] call to abs(long long) in gcc/fold-const.c


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

--- Comment #8 from rguenther at suse dot de <rguenther at suse dot de> 2011-08-02 08:42:00 UTC ---
On Mon, 1 Aug 2011, paolo.carlini at oracle dot com wrote:

> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49914
> 
> --- Comment #6 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-08-01 17:20:57 UTC ---
> To be clear: if nobody objects I'm willing to bootstrap and test again that
> patch, commit it, and then use abs_hwi in all the places pointed out here.

well, I don't think we want the assert in abs_hwi as it stands now.
Either we can handle this case in the callers or we should just do
what we can - exploit the undefined behavior and return INT_MIN for
INT_MIN.


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