This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/47837] FAIL: gcc.dg/uninit-pred-7_a.c bogus warning (test for bogus messages, line 26)


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]