public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/64823] New: [5.0 Regression] false "may be used uninitialized"
@ 2015-01-27 17:45 alserkli at inbox dot ru
  2015-01-28 12:08 ` [Bug tree-optimization/64823] [5.0 Regression] false "may be used uninitialized", missed jump threading rguenth at gcc dot gnu.org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: alserkli at inbox dot ru @ 2015-01-27 17:45 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 64823
           Summary: [5.0 Regression] false "may be used uninitialized"
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: alserkli at inbox dot ru

Compilation of (GDB) 7.9.50.20150127-cvs with (GCC) 5.0.0 20150127 fails due to
false warning (gdb is compiled with -Werror). It was not a problem in GCC
4.7.2.

// a.c: simplified from the expansion of ALL_OBJSECTIONS in
gdb/gdb/symfile.c:unmap_overlay_command
struct os { struct o *o; };
struct o { struct o *next; struct os *se; };
void f(struct o *o){
  struct os *s;
  if(o) s = o->se;
  while(o && s == o->se){
    s++; // here `o' is non-zero and thus s is initialized
    s == o->se  // `?' is essential, `if' does not trigger the warning
      ? (o = o->next, o ? s = o->se : 0)
      : 0;
  }
}

$ gcc -O2 -Wall -Werror -c a.c
a.c: In function ‘f’:
a.c:8:6: error: ‘s’ may be used uninitialized in this function
[-Werror=maybe-uninitialized]
     s++; // here `o' is non-zero and thus s is initialized
      ^
cc1: all warnings being treated as errors
>From gcc-bugs-return-475130-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Jan 27 17:54:21 2015
Return-Path: <gcc-bugs-return-475130-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 15820 invoked by alias); 27 Jan 2015 17:54:20 -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 15642 invoked by uid 48); 27 Jan 2015 17:54:15 -0000
From: "burnus at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/64771] [4.9/5 Regression] ICE(segfault) when passing coarrays around; ICE in gfc_zero_size_array in arith.c:1637
Date: Tue, 27 Jan 2015 17:54: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: 5.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: burnus at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Priority: P4
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 4.9.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-64771-4-A6NSPUwnvJ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-64771-4@http.gcc.gnu.org/bugzilla/>
References: <bug-64771-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-01/txt/msg03124.txt.bz2
Content-length: 181

https://gcc.gnu.org/bugzilla/show_bug.cgi?idd771

--- Comment #8 from Tobias Burnus <burnus at gcc dot gnu.org> ---
*** Bug 64355 has been marked as a duplicate of this bug. ***


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2015-02-17 10:26 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-27 17:45 [Bug c/64823] New: [5.0 Regression] false "may be used uninitialized" alserkli at inbox dot ru
2015-01-28 12:08 ` [Bug tree-optimization/64823] [5.0 Regression] false "may be used uninitialized", missed jump threading rguenth at gcc dot gnu.org
2015-01-28 20:46 ` law at redhat dot com
2015-02-13  2:39 ` [Bug tree-optimization/64823] [5 " law at redhat dot com
2015-02-13  3:26 ` law at redhat dot com
2015-02-13  7:11 ` law at redhat dot com
2015-02-13 21:10 ` law at gcc dot gnu.org
2015-02-13 21:12 ` law at redhat dot com
2015-02-13 23:55 ` law at redhat dot com
2015-02-16 21:01 ` law at redhat dot com
2015-02-17 10:26 ` alserkli at inbox dot ru

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).