This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


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

Re: libiberty x libgcc2 (cp-demangle.c and dyn-string.c)


On Jul 22, 2000, Jason Merrill <jason@redhat.com> wrote:

>>>>>> Alexandre Oliva <aoliva@redhat.com> writes:
>> Some libiberty sources that are used while building libgcc2 shouldn't
>> include libc headers unconditionally; they should honor inhibit_libc,
>> because GCC_FOR_TARGET can't find newlib (or glibc) headers.

> I thought inhibit_libc meant "don't assume there is a C library", not
> "don't assume we can find the C library headers".

Might well be.  But I'm currently building a newlib-enabled
--target=sh-elf toolchain, and it does define inhibit_libc.  It also
defines IN_LIBGCC2 and IN_GCC; maybe using some of these would be
better?

Anyway, the patch I'm about to propose will obviate this one, at least
in case newlib or glibc are in use.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


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