From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2429 invoked by alias); 7 Mar 2011 16:58:27 -0000 Received: (qmail 2416 invoked by uid 22791); 7 Mar 2011 16:58:26 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,TW_DX X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 07 Mar 2011 16:58:23 +0000 From: "xinliangli at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/47837] FAIL: gcc.dg/uninit-pred-7_a.c bogus warning (test for bogus messages, line 26) X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: xinliangli 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-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Date: Mon, 07 Mar 2011 16:58:00 -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 X-SW-Source: 2011-03/txt/msg00639.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D47837 --- Comment #13 from davidxl 2011-03-07 16:58= :03 UTC --- Yes -- I also wanted to do the generalization. David (In reply to comment #10) > (In reply to comment #8) > > Please verify the patch on hpux and os390. >=20 > Perhaps you could enhance your patch to cover then uninit-pred-8_a.c case= as > well. It looks quite similiar: >=20 > /build3/gcc-head-build/gcc/xgcc -B/build3/gcc-head-build/gcc/ > /build3/gcc-head/gcc/testsuite/gcc.dg/uninit-pred-8_a.c -Wuninitialized= -O2 > -S -o uninit-pred-8_a.s >=20 > /build3/gcc-head/gcc/testsuite/gcc.dg/uninit-pred-8_a.c: In function =E2= =80=98foo=E2=80=99: > /build3/gcc-head/gcc/testsuite/gcc.dg/uninit-pred-8_a.c:26:11: warning: = =E2=80=98v=E2=80=99 may > be used uninitialized in this function [-Wuninitialized] > /build3/gcc-head/gcc/testsuite/gcc.dg/uninit-pred-8_a.c: In function =E2= =80=98foo_2=E2=80=99: > /build3/gcc-head/gcc/testsuite/gcc.dg/uninit-pred-8_a.c:42:11: warning: = =E2=80=98v=E2=80=99 may > be used uninitialized in this function [-Wuninitialized] >=20 > As well as with uninit-pred-7_a.c the first warning is unexpected.