public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/61943] New: tree-ssa-loop-ivopts.c:4148 signed integer overflow
@ 2014-07-29 7:02 zeccav at gmail dot com
2014-09-04 3:42 ` [Bug tree-optimization/61943] " amker at gcc dot gnu.org
` (7 more replies)
0 siblings, 8 replies; 9+ messages in thread
From: zeccav at gmail dot com @ 2014-07-29 7:02 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61943
Bug ID: 61943
Summary: tree-ssa-loop-ivopts.c:4148 signed integer overflow
Product: gcc
Version: 4.9.1
Status: UNCONFIRMED
Severity: minor
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: zeccav at gmail dot com
// from pr55569.c
// gcc -O
// ../../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'
// "offset = - ratio * int_cst_value (cbase);"
int *bar (void);
void
foo (void)
{
long x;
int *y = bar ();
for (x = -1 / sizeof (int); x; --x, ++y)
*y = 0;
}
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug tree-optimization/61943] tree-ssa-loop-ivopts.c:4148 signed integer overflow
2014-07-29 7:02 [Bug c/61943] New: tree-ssa-loop-ivopts.c:4148 signed integer overflow zeccav at gmail dot com
@ 2014-09-04 3:42 ` amker at gcc dot gnu.org
2014-09-04 5:20 ` zeccav at gmail dot com
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: amker at gcc dot gnu.org @ 2014-09-04 3:42 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61943
amker at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |amker at gcc dot gnu.org
--- Comment #1 from amker at gcc dot gnu.org ---
Could you please provide detailed command line for both compilation and gcc
configuration?
I can't reproduce it on trunk/gcc-4_9-branch.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug tree-optimization/61943] tree-ssa-loop-ivopts.c:4148 signed integer overflow
2014-07-29 7:02 [Bug c/61943] New: tree-ssa-loop-ivopts.c:4148 signed integer overflow zeccav at gmail dot com
2014-09-04 3:42 ` [Bug tree-optimization/61943] " amker at gcc dot gnu.org
@ 2014-09-04 5:20 ` zeccav at gmail dot com
2014-09-04 9:44 ` mpolacek at gcc dot gnu.org
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: zeccav at gmail dot com @ 2014-09-04 5:20 UTC (permalink / raw)
To: gcc-bugs
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'
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug tree-optimization/61943] tree-ssa-loop-ivopts.c:4148 signed integer overflow
2014-07-29 7:02 [Bug c/61943] New: tree-ssa-loop-ivopts.c:4148 signed integer overflow zeccav at gmail dot com
2014-09-04 3:42 ` [Bug tree-optimization/61943] " amker at gcc dot gnu.org
2014-09-04 5:20 ` zeccav at gmail dot com
@ 2014-09-04 9:44 ` mpolacek at gcc dot gnu.org
2014-10-30 10:42 ` jakub at gcc dot gnu.org
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2014-09-04 9:44 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61943
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2014-09-04
Target Milestone|--- |4.9.2
Ever confirmed|0 |1
--- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Confirmed.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug tree-optimization/61943] tree-ssa-loop-ivopts.c:4148 signed integer overflow
2014-07-29 7:02 [Bug c/61943] New: tree-ssa-loop-ivopts.c:4148 signed integer overflow zeccav at gmail dot com
` (2 preceding siblings ...)
2014-09-04 9:44 ` mpolacek at gcc dot gnu.org
@ 2014-10-30 10:42 ` jakub at gcc dot gnu.org
2015-06-26 20:03 ` jakub at gcc dot gnu.org
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu.org @ 2014-10-30 10:42 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61943
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.9.2 |4.9.3
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 4.9.2 has been released.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug tree-optimization/61943] tree-ssa-loop-ivopts.c:4148 signed integer overflow
2014-07-29 7:02 [Bug c/61943] New: tree-ssa-loop-ivopts.c:4148 signed integer overflow zeccav at gmail dot com
` (3 preceding siblings ...)
2014-10-30 10:42 ` jakub at gcc dot gnu.org
@ 2015-06-26 20:03 ` jakub at gcc dot gnu.org
2015-06-26 20:32 ` jakub at gcc dot gnu.org
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-06-26 20:03 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61943
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 4.9.3 has been released.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug tree-optimization/61943] tree-ssa-loop-ivopts.c:4148 signed integer overflow
2014-07-29 7:02 [Bug c/61943] New: tree-ssa-loop-ivopts.c:4148 signed integer overflow zeccav at gmail dot com
` (4 preceding siblings ...)
2015-06-26 20:03 ` jakub at gcc dot gnu.org
@ 2015-06-26 20:32 ` jakub at gcc dot gnu.org
2015-06-26 21:20 ` pinskia at gcc dot gnu.org
2015-08-23 5:22 ` zeccav at gmail dot com
7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-06-26 20:32 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61943
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.9.3 |4.9.4
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug tree-optimization/61943] tree-ssa-loop-ivopts.c:4148 signed integer overflow
2014-07-29 7:02 [Bug c/61943] New: tree-ssa-loop-ivopts.c:4148 signed integer overflow zeccav at gmail dot com
` (5 preceding siblings ...)
2015-06-26 20:32 ` jakub at gcc dot gnu.org
@ 2015-06-26 21:20 ` pinskia at gcc dot gnu.org
2015-08-23 5:22 ` zeccav at gmail dot com
7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu.org @ 2015-06-26 21:20 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61943
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.9.4 |---
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug tree-optimization/61943] tree-ssa-loop-ivopts.c:4148 signed integer overflow
2014-07-29 7:02 [Bug c/61943] New: tree-ssa-loop-ivopts.c:4148 signed integer overflow zeccav at gmail dot com
` (6 preceding siblings ...)
2015-06-26 21:20 ` pinskia at gcc dot gnu.org
@ 2015-08-23 5:22 ` zeccav at gmail dot com
7 siblings, 0 replies; 9+ messages in thread
From: zeccav at gmail dot com @ 2015-08-23 5:22 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61943
Vittorio Zecca <zeccav at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |WORKSFORME
--- Comment #6 from Vittorio Zecca <zeccav at gmail dot com> ---
Just tried with gcc-5.2.0 and the bug has disappeared.
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2015-08-23 5:22 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-29 7:02 [Bug c/61943] New: tree-ssa-loop-ivopts.c:4148 signed integer overflow zeccav at gmail dot com
2014-09-04 3:42 ` [Bug tree-optimization/61943] " amker at gcc dot gnu.org
2014-09-04 5:20 ` zeccav at gmail dot com
2014-09-04 9:44 ` mpolacek at gcc dot gnu.org
2014-10-30 10:42 ` jakub at gcc dot gnu.org
2015-06-26 20:03 ` jakub at gcc dot gnu.org
2015-06-26 20:32 ` jakub at gcc dot gnu.org
2015-06-26 21:20 ` pinskia at gcc dot gnu.org
2015-08-23 5:22 ` zeccav at gmail dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).