This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: build error on head overnight


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]