This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/47837] FAIL: gcc.dg/uninit-pred-7_a.c bogus warning (test for bogus messages, line 26)
- From: "krebbel at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 7 Mar 2011 16:00:03 +0000
- Subject: [Bug c/47837] FAIL: gcc.dg/uninit-pred-7_a.c bogus warning (test for bogus messages, line 26)
- Auto-submitted: auto-generated
- References: <bug-47837-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47837
--- Comment #10 from Andreas Krebbel <krebbel at gcc dot gnu.org> 2011-03-07 15:59:46 UTC ---
(In reply to comment #8)
> Please verify the patch on hpux and os390.
Perhaps you could enhance your patch to cover then uninit-pred-8_a.c case as
well. It looks quite similiar:
/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
/build3/gcc-head/gcc/testsuite/gcc.dg/uninit-pred-8_a.c: In function âfooâ:
/build3/gcc-head/gcc/testsuite/gcc.dg/uninit-pred-8_a.c:26:11: warning: âvâ may
be used uninitialized in this function [-Wuninitialized]
/build3/gcc-head/gcc/testsuite/gcc.dg/uninit-pred-8_a.c: In function âfoo_2â:
/build3/gcc-head/gcc/testsuite/gcc.dg/uninit-pred-8_a.c:42:11: warning: âvâ may
be used uninitialized in this function [-Wuninitialized]
As well as with uninit-pred-7_a.c the first warning is unexpected.