build error on head overnight
Daniel Jacobowitz
drow@false.org
Tue May 12 14:11:00 GMT 2009
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
More information about the Gdb
mailing list