[commit#2+7.3] Re: [patch 1/2] physname reg.: linespec minsym fallback

Ulrich Weigand uweigand@de.ibm.com
Mon Jul 4 16:35:00 GMT 2011


Jan Kratochvil wrote:
> On Mon, 04 Jul 2011 15:13:57 +0200, Ulrich Weigand wrote:
> > On some machines (RHEL 5.6 with GCC 4.1.2 system compiler) I'm now seeing:
> > 
> > cc1: warnings being treated as errors
> > /home/kwerner/dailybuild/spu-tc-2011-07-04/gdb-head/src/gdb/linespec.c: In function 'decode_line_1':
> > /home/kwerner/dailybuild/spu-tc-2011-07-04/gdb-head/src/gdb/linespec.c:928: warning: 'values.nelts' may be used uninitialized in this function
> > /home/kwerner/dailybuild/spu-tc-2011-07-04/gdb-head/src/gdb/linespec.c:928: warning: 'values.sals' may be used uninitialized in this function
> > 
> > Should there be an initializer somewhere?
> 
> This false GCC warning I have seen when TRY_CATCH is in use like in this case.
> 
> Curiously I failed to reproduce this warning on gcc-4.1.2-50.el5.x86_64.

Huh, that's strange.  I'm running on a ppc64 host if that makes
any difference ...

> Anyway checked in HEAD (below) and in 7.3:
> 	http://sourceware.org/ml/gdb-cvs/2011-07/msg00055.html

Great, thanks for the quick fix!

Bye,
Ulrich

-- 
  Dr. Ulrich Weigand
  GNU Toolchain for Linux on System z and Cell BE
  Ulrich.Weigand@de.ibm.com



More information about the Gdb-patches mailing list