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

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).