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

xinliangli at gmail dot com gcc-bugzilla@gcc.gnu.org
Mon Mar 7 16:58:00 GMT 2011


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47837

--- Comment #13 from davidxl <xinliangli at gmail dot com> 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.
> 
> 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.



More information about the Gcc-bugs mailing list