This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [commit] [PATCH v5 6/7] compile: New 'compile print'
- From: Patrick Palka <patrick at parcs dot ath dot cx>
- To: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- Cc: Pedro Alves <palves at redhat dot com>, gdb-patches at sourceware dot org, Phil Muldoon <pmuldoon at redhat dot com>
- Date: Sat, 16 May 2015 10:24:53 -0400 (EDT)
- Subject: Re: [commit] [PATCH v5 6/7] compile: New 'compile print'
- Authentication-results: sourceware.org; auth=none
- References: <20150513201615 dot 4051 dot 5261 dot stgit at host1 dot jankratochvil dot net> <20150513201704 dot 4051 dot 40784 dot stgit at host1 dot jankratochvil dot net> <55562703 dot 4060104 at redhat dot com> <20150516125814 dot GE9862 at host1 dot jankratochvil dot net>
GCC 4.9 emits -Wmaybe-uninitialized warnings for the function get_out_value_type():
/home/patrick/code/binutils-gdb/gdb/compile/compile-object-load.c: In function ʽcompile_object_loadʼ:
/home/patrick/code/binutils-gdb/gdb/compile/compile-object-load.c:419:20: error: ʽblockʼ may be used uninitialized in this function [-Werror=maybe-uninitialized]
gdb_ptr_type_sym = block_lookup_symbol (block, COMPILE_I_EXPR_PTR_TYPE,
^
/home/patrick/code/binutils-gdb/gdb/compile/compile-object-load.c:376:23: note: ʽblockʼ was declared here
const struct block *block;
^
/home/patrick/code/binutils-gdb/gdb/compile/compile-object-load.c:416:12: error: ʽgdb_val_symʼ may be used uninitialized in this function [-Werror=maybe-uninitialized]
gdb_type = SYMBOL_TYPE (gdb_val_sym);
^
/home/patrick/code/binutils-gdb/gdb/compile/compile-object-load.c:374:37: note: ʽgdb_val_symʼ was declared here
struct symbol *gdb_ptr_type_sym, *gdb_val_sym;
^
/home/patrick/code/binutils-gdb/gdb/compile/compile-object-load.c:406:10: error: ʽfunctionʼ may be used uninitialized in this function [-Werror=maybe-uninitialized]
if (function != NULL
^
/home/patrick/code/binutils-gdb/gdb/compile/compile-object-load.c:387:22: note: ʽfunctionʼ was declared here
struct symbol *function;