This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/53385] "Error: operand out of range" after changes for LSHIFT_EXPR in vrp.c
- From: "glisse at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 17 May 2012 13:00:34 +0000
- Subject: [Bug tree-optimization/53385] "Error: operand out of range" after changes for LSHIFT_EXPR in vrp.c
- Auto-submitted: auto-generated
- References: <bug-53385-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53385
Marc Glisse <glisse at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |glisse at gcc dot gnu.org
--- Comment #6 from Marc Glisse <glisse at gcc dot gnu.org> 2012-05-17 13:00:34 UTC ---
(In reply to comment #4)
> Here's the problem. Compiled with -m64 -O2, this
>
> int f (long val)
> {
> int i;
>
> if (val < 0)
> i = -1;
> else
> for (i = 0; i < 64; i++)
> if ((val <<= 1) < 0)
> break;
>
> return i;
> }
Is that just a -fwrapv issue?