This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


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: getting glibc to compile with GCC CVS mainline


On Feb 15, 2005, Andreas Jaeger <aj@suse.de> wrote:

> Alexandre Oliva <aoliva@redhat.com> writes:
>> Here are patches to fix incompatibilities with the current CVS version
>> of GCC.
>> 
>> The first addresses a problem that causes GCC to reject auto nested
>> functions that are declared but not defined.

> The actual error message is:
> dl-reloc.c: In function â_dl_relocate_objectâ:
> dynamic-link.h:44: error: nested function âelf_machine_rel_relativeâ declared but never defined
> dynamic-link.h:37: error: nested function âelf_machine_relâ declared but never defined

>> The second addresses a problem of trying to construct array types of
>> incomplete types.  Although this is well-formed C++, it's ill-formed
>> C, even if the type would decay to pointer to incomplete type, which
>> is well-formed in both languages.  There were two occurrences of this
>> error in glibc.

> Shall I commit these patches?

The latter is already in, RTH beat me to posting it.

I'm told by Matthew Burgess that the former doesn't fix the problem on
i*86-linux-gnu, although it does fix it on frv-linux-gnu.  It seems
that dl-machine.h, that defines these macros, is only included after
the ELF_MACHINE_NO_REL* macros are tested for.  Maybe they should be
defined elsewhere?

Matthew agreed to file a bug report on this problem.  I figured it
didn't make sense for me to waste time trying to implement a patch
that wouldn't even be looked at :-/

-- 
Alexandre Oliva             http://www.ic.unicamp.br/~oliva/
Red Hat Compiler Engineer   aoliva@{redhat.com, gcc.gnu.org}
Free Software Evangelist  oliva@{lsd.ic.unicamp.br, gnu.org}


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