No __bb_init_func (was: Re: Committed, bprob.exp: skip for mmix-*-* and cris-*-*)

Hans-Peter Nilsson hp@bitrange.com
Wed Apr 3 07:39:00 GMT 2002


On Wed, 3 Apr 2002, Hans-Peter Nilsson wrote:

> On Tue, 2 Apr 2002, Hans-Peter Nilsson wrote:
>
> > There's no __bb_init_func in sight for these targets,
>
> Doh, double and triple doh.  It's actually in libgcc2.c, but
> prevented by -Dinhibit_libc.  I'll see what can be done
> (reviving __bb_init_func is necessary but might not be
> sufficient.)

Besides the t-cris and t-mmix definitions, -Dinhibit_libc is
also due to this chunk in gcc/configure.in:
---------------
# If this is a cross-compiler that does not
# have its own set of headers then define
# inhibit_libc

# If this is using newlib, then define inhibit_libc in
LIBGCC2_CFLAGS.
# This prevents libgcc2 from containing any code which requires libc
# support.
inhibit_libc=
if [test x$host != x$target] && [test x$with_headers = x]; then
       inhibit_libc=-Dinhibit_libc
else
       if [test x$with_newlib = xyes]; then
               inhibit_libc=-Dinhibit_libc
       fi
fi
AC_SUBST(inhibit_libc)
---------------
so leaving things as they are now seems good enough.  Or maybe
tweak bprob.exp in the added comment to say "__bb_init_func from
libgcc is by default inhibited for newlib and cross targets".

brgds, H-P



More information about the Gcc-patches mailing list