public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/62058] Undefined behaviour in tree-data-ref.c with options -O1 -ftree-loop-vectorize
Date: Thu, 04 Sep 2014 10:19:00 -0000	[thread overview]
Message-ID: <bug-62058-4-Q2bZ2fKQm0@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-62058-4@http.gcc.gnu.org/bugzilla/>

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62058

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 #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
$ ./xgcc -B./ -c o.c -O -ftree-loop-vectorize
/home/polacek/src/gcc/gcc/tree-data-ref.c:2440:16: runtime error: signed
integer overflow: 65536 * -65536 cannot be represented in type 'int'
/home/polacek/src/gcc/gcc/tree-data-ref.c:2351:38: runtime error: signed
integer overflow: 1073741824 + 1073741824 cannot be represented in type 'int'
/home/polacek/src/gcc/gcc/tree-data-ref.c:2442:16: runtime error: negation of
-2147483648 cannot be represented in type 'int'; cast to an unsigned type to
negate this value to itself
/home/polacek/src/gcc/gcc/tree-data-ref.c:2441:16: runtime error: negation of
-2147483648 cannot be represented in type 'int'; cast to an unsigned type to
negate this value to itself

Confirmed.


  reply	other threads:[~2014-09-04 10:19 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-08  8:05 [Bug c/62058] New: " zeccav at gmail dot com
2014-09-04 10:19 ` mpolacek at gcc dot gnu.org [this message]
2014-10-30 10:42 ` [Bug tree-optimization/62058] " jakub at gcc dot gnu.org
2015-06-26 20:07 ` jakub at gcc dot gnu.org
2015-06-26 20:35 ` jakub at gcc dot gnu.org
2015-06-26 21:20 ` pinskia at gcc dot gnu.org
2015-08-24 12:12 ` zeccav at gmail dot com
2021-02-27  9:34 ` zeccav at gmail dot com

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-62058-4-Q2bZ2fKQm0@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).