From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24248 invoked by alias); 20 Feb 2014 01:07:45 -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 24229 invoked by uid 48); 20 Feb 2014 01:07:40 -0000 From: "chengniansun at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/60279] New: Incorrect column number for -Wuninitialized in return statement Date: Thu, 20 Feb 2014 01:07:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: chengniansun at gmail dot com X-Bugzilla-Status: UNCONFIRMED 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter Message-ID: 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: 2014-02/txt/msg02038.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D60279 Bug ID: 60279 Summary: Incorrect column number for -Wuninitialized in return statement Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: chengniansun at gmail dot com I found the column number in the return statement of -Wuninitialized is not correct.=20 $: cat s.c=20 int g(char *); int f(void) { char *s; return g(s); } $: gcc-trunk -Wuninitialized -c s.c s.c: In function =E2=80=98f=E2=80=99: s.c:4:3: warning: =E2=80=98s=E2=80=99 is used uninitialized in this functio= n [-Wuninitialized] return g(s); ^ $: gcc-trunk --version gcc-trunk (GCC) 4.9.0 20140217 (experimental) Copyright (C) 2014 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. $: >>From gcc-bugs-return-444282-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 20 01:33:06 2014 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 5968 invoked by alias); 20 Feb 2014 01:33:06 -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 5909 invoked by uid 55); 20 Feb 2014 01:33:01 -0000 From: "hubicka at ucw dot cz" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/58555] [4.9 Regression] Floating point exception in want_inline_self_recursive_call_p Date: Thu, 20 Feb 2014 01:33: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: 4.9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hubicka at ucw dot cz X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: hubicka at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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-02/txt/msg02039.txt.bz2 Content-length: 447 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58555 --- Comment #24 from Jan Hubicka --- > > So, shall we just apply #c15 here? > > Diff works fine for me for over five weeks now, so I say yes. It is easier to just return at beggining instead of duplicating the check. Have patch for it, just for some reason I wanted to look deper into why we inline here. I forgot the reason, but will work it out again today. Honza