This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/61943] tree-ssa-loop-ivopts.c:4148 signed integer overflow
- From: "zeccav at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 04 Sep 2014 05:19:54 +0000
- Subject: [Bug tree-optimization/61943] tree-ssa-loop-ivopts.c:4148 signed integer overflow
- Auto-submitted: auto-generated
- References: <bug-61943-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61943
--- Comment #2 from Vittorio Zecca <zeccav at gmail dot com> ---
gcc was compiled with -fsanitize=undefined option.
Call it gcc-sanitized.
Then I did
gcc-sanitized -S gccerr13.c -O
where gccerr13.c is the sample C code I sent bugzilla
The option -O is necessary to reproduce the bug.
Error message from the sanitizer
../../gcc-4.9.1/gcc/tree-ssa-loop-ivopts.c:4148:24: runtime error:
signed integer overflow: 4 * 4611686018427387903 cannot be represented
in type 'long int'