From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2484 invoked by alias); 4 Sep 2014 10:19:51 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 2383 invoked by uid 48); 4 Sep 2014 10:19:47 -0000 From: "mpolacek at gcc dot 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 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 4.9.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: minor X-Bugzilla-Who: mpolacek at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.9.2 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on target_milestone everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-09/txt/msg01030.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62058 Marek Polacek 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 --- $ ./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.