This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: build error on head overnight
- From: Daniel Jacobowitz <drow at false dot org>
- To: Joel Brobecker <brobecker at adacore dot com>
- Cc: Joel Sherrill <joel dot sherrill at oarcorp dot com>, "gdb at sourceware dot org" <gdb at sourceware dot org>
- Date: Tue, 12 May 2009 10:11:22 -0400
- Subject: Re: build error on head overnight
- References: <4A0038F6.1060209@oarcorp.com> <20090506184713.GA20299@adacore.com>
On Wed, May 06, 2009 at 11:47:13AM -0700, Joel Brobecker wrote:
> > cp-name-parser.y: In function ?cp_comp_to_string?:
> > cp-name-parser.y:1982: error: comparison between ?enum
> > demangle_component_type? and ?enum <anonymous>?
> > cp-name-parser.y:1987: error: comparison between ?enum
> > demangle_component_type? and ?enum <anonymous>?
> > make[2]: *** [cp-name-parser.o] Error 1
>
> Hmmm, I'm not an expert in the C++ part of GDB, but it looks like
> the following enums need to be moved to include/demangle.h:
>
> enum {
> GLOBAL_CONSTRUCTORS = DEMANGLE_COMPONENT_LITERAL + 20,
> GLOBAL_DESTRUCTORS = DEMANGLE_COMPONENT_LITERAL + 21
> };
> %}
I hope not - these aren't part of the demangler interface, they're
values we stuff into the same type. Maybe some fields have to be
changed to int. I thought what we'd done here was valid C,
though... maybe some change in the C++ compatibility checking
that Ian has been working on in gcc-land affected this.
--
Daniel Jacobowitz
CodeSourcery