This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] Fix warnings using gcc-4.5 HEAD
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: Joel Brobecker <brobecker at adacore dot com>
- Cc: Eli Zaretskii <eliz at gnu dot org>, mark dot kettenis at xs4all dot nl, gdb-patches at sourceware dot org, Tom Tromey <tromey at redhat dot com>
- Date: Tue, 15 Sep 2009 18:10:38 +0200
- Subject: Re: [patch] Fix warnings using gcc-4.5 HEAD
- References: <20090711082502.GA18801@host0.dyn.jankratochvil.net> <200907110836.n6B8a4Yn015392@brahms.sibelius.xs4all.nl> <20090711083928.GA30826@host0.dyn.jankratochvil.net> <837hyfy3fv.fsf@gnu.org> <20090711175937.GB18892@host0.dyn.jankratochvil.net> <m38wi7t9z1.fsf@fleche.redhat.com> <20090908185119.GA10457@host0.dyn.jankratochvil.net> <20090910014821.GH20694@adacore.com> <20090910072815.GA19270@host0.dyn.jankratochvil.net>
Hi all,
Checked-in:
http://sourceware.org/ml/gdb-cvs/2009-09/msg00080.html
gdb/
Fix gcc-4.5 HEAD warnings for enum ada_operator.
* Makefile.in (HFILES_NO_SRCDIR): Add ada-operator.inc.
* ada-lang.h (enum ada_operator): Move it to ...
* ada-operator.inc: ... a new file.
* expression.h (enum exp_opcode): Include ada-operator.inc.
New element OP_UNUSED_LAST. Update comment for OP_EXTENDED0.
gdb/
Fix gcc-4.5 HEAD warnings for GDB_FORM_cached_string.
* dwarf2read.c (GDB_FORM_cached_string)
(dwarf_form_name <GDB_FORM_cached_string>): Remove.
(struct attribute <dwarf_form>): Reduce the bit width.
(struct attribute <string_is_canonical>, DW_STRING_IS_CANONICAL): New.
(read_attribute_value <DW_FORM_string>)
(read_attribute_value <DW_FORM_strp>): Initialize
DW_STRING_IS_CANONICAL.
(dwarf2_name, dump_die_shallow <DW_FORM_string>)
(dump_die_shallow <DW_FORM_strp>): Update the code using former
GDB_FORM_cached_string.
Thanks,
Jan