public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "gang.chen.5i5j at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
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	[thread overview]
Message-ID: <bug-63510-4-GrblDHO42h@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-63510-4@http.gcc.gnu.org/bugzilla/>

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="UTF-8", Size: 3072 bytes --]

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

--- Comment #10 from Chen Gang <gang.chen.5i5j at gmail dot com> ---
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 passed
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) >= X is always true
/tmp/i387-tdep.c: In function ‘i387_supply_fsave’:
/tmp/i387-tdep.c:6:3: warning: assuming signed overflow does not occur when
assuming that (X + c) >= X is always true [-Wstrict-overflow]
   for (i = 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: <gcc-bugs-return-495839-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
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: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
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" <gcc-bugzilla@gcc.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: <bug-67367-4-0LiyvqsFxY@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-67367-4@http.gcc.gnu.org/bugzilla/>
References: <bug-67367-4@http.gcc.gnu.org/bugzilla/>
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?idg367

--- Comment #6 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> ---
Created attachment 36266
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id6266&actioníit
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.


  parent reply	other threads:[~2015-08-29  0:17 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-11  7:12 [Bug c/63510] New: " ibuclaw at ubuntu dot com
2014-10-11 14:34 ` [Bug middle-end/63510] " manu at gcc dot gnu.org
2015-01-07 15:00 ` gang.chen.5i5j at gmail dot com
2015-01-09 21:42 ` gang.chen.5i5j at gmail dot com
2015-08-04 14:01 ` ibuclaw at ubuntu dot com
2015-08-04 16:45 ` manu at gcc dot gnu.org
2015-08-05 14:49 ` xili_gchen_5257 at hotmail dot com
2015-08-25 22:39 ` gang.chen.5i5j at gmail dot com
2015-08-29  0:17 ` gang.chen.5i5j at gmail dot com [this message]
2015-08-29 13:00 ` gang.chen.5i5j at gmail dot com
2015-09-04  3:33 ` gang.chen.5i5j at gmail dot com
2015-10-24 16:33 ` gang.chen.5i5j at gmail dot com
2024-04-10 23:16 ` pinskia at gcc dot gnu.org

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-63510-4-GrblDHO42h@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).