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


> 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
};        
%}

It's a little bit strange that we'd be building a generated file
with -Werror, but I guess it makes sense if the generated code
allows us to...

-- 
Joel


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