This is the mail archive of the gdb-patches@sources.redhat.com 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: non-mulit-arch compiles probs


> Andrew Cagney wrote:
> 
>> 
>> FYI,
>> 
>> The file std-regs.c doesn't compile with -Werror on non-multi-arch
>> targets.  They all dropped like flies.
>> 
>> Adding to the fun, I've found an entry for the ``how did this ever
>> compile'' category:
>> 
>> exec.c:print_section_info (struct target_ops *t, bfd *abfd)
>> maint.c:print_section_info (const char *name, flagword flags,
>> 
>> (one is static, the other has a .h declaration).
> 
> 
> Doesn't the static one override the global one?

Yes, you can have both a static and a global function with the same 
name.  I think it is asking for trouble though.  As with my case, when 
the global function's declaration becomes visible in the file with the 
static declaration (new #include) the compile will barf (the functions 
had different signatures).

enjoy,
Andrew




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