From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32336 invoked by alias); 29 Aug 2015 00:17:20 -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 32292 invoked by uid 48); 29 Aug 2015 00:17:17 -0000 From: "gang.chen.5i5j at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/63510] Wrong line number in Wstrict-overflow message Date: Sat, 29 Aug 2015 00:17:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: gang.chen.5i5j at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-08/txt/msg01980.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D63510 --- Comment #10 from Chen Gang --- Need use gimple_location(stmt) for it. The stmt is the variable in gcc/tree-ssa-sccvn.c before call fold_binary(). But unlucky, it is not pass= ed into fold_binary(), we can not get it directly. After try a temporary fix, the related output is: [root@localhost build-gcc-x86_64]# gcc -O2 -Wall -Wextra -c /tmp/i387-tdep.c when assuming that (X + c) >=3D X is always true /tmp/i387-tdep.c: In function =E2=80=98i387_supply_fsave=E2=80=99: /tmp/i387-tdep.c:6:3: warning: assuming signed overflow does not occur when assuming that (X + c) >=3D X is always true [-Wstrict-overflow] for (i =3D st0_regnum; i < st0_regnum + 16;) ^ I shall try to give a normal fix for it, next. >>From gcc-bugs-return-495839-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 29 00:42:11 2015 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 58652 invoked by alias); 29 Aug 2015 00:42:11 -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 Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 58613 invoked by uid 48); 29 Aug 2015 00:42:08 -0000 From: "jvdelisle at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/67367] Program crashes on READ(IOSTAT=IOS, ...) on directory OPEN()ed without error Date: Sat, 29 Aug 2015 00:42:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 4.9.3 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jvdelisle at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: jvdelisle at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created 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: 2015-08/txt/msg01981.txt.bz2 Content-length: 423 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67367 --- Comment #6 from Jerry DeLisle --- Created attachment 36266 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36266&action=edit Better than preliminary This patch returns the correct code from raw_read and we get the "Is a directory" error message as we should. I think this is it. I will regression test and work up a test case.