This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug bootstrap/49914] call to abs(long long) in gcc/fold-const.c
- From: "rguenther at suse dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 2 Aug 2011 08:42:57 +0000
- Subject: [Bug bootstrap/49914] call to abs(long long) in gcc/fold-const.c
- Auto-submitted: auto-generated
- References: <bug-49914-4@http.gcc.gnu.org/bugzilla/>
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.