Commit b39d221a by Eric Christopher Committed by Jeff Law

configure.in: Redefine inhibit_libc conditions.

        * configure.in: Redefine inhibit_libc conditions.
        * libgcc2.c: Remove inhibit_libc conditional define.
        * configure: Regenerate.

From-SVN: r34126
parent 721c3b42
2000-05-24 Eric Christopher <echristo@cygnus.com>
* configure.in: Redefine inhibit_libc conditions.
* libgcc2.c: Remove inhibit_libc conditional define.
* configure: Regenerate.
2000-05-24 Phil Edwards <pme@sourceware.cygnus.com>
* configure.in: For --enable-languages=LIST, check for empty LIST.
......@@ -4236,6 +4236,24 @@ then
cross_overrides="${topdir}/cross-make"
fi
# 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 will cause __eprintf to be left out of
# libgcc.a, but that's OK because newlib should have its own version of
# assert.h.
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)
# When building gcc with a cross-compiler, we need to fix a few things.
# This must come after cross-make as we want all.build to override
# all.cross.
......@@ -4855,16 +4873,6 @@ AC_SUBST(build_canonical)
AC_SUBST(host_canonical)
AC_SUBST(target_subdir)
# If this is using newlib, then define inhibit_libc in
# LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
# libgcc.a, but that's OK because newib should have its own version of
# assert.h.
inhibit_libc=
if test x$with_newlib = xyes; then
inhibit_libc=-Dinhibit_libc
fi
AC_SUBST(inhibit_libc)
# If $(exec_prefix) exists and is not the same as $(prefix), then compute an
# absolute path for gcc_tooldir based on inserting the number of up-directory
# movements required to get from $(exec_prefix) to $(prefix) into the basic
......
......@@ -44,13 +44,6 @@ Boston, MA 02111-1307, USA. */
#undef abort
#endif
/* In a cross-compilation situation, default to inhibiting compilation
of routines that use libc. */
#if defined(CROSS_COMPILE) && !defined(inhibit_libc)
#define inhibit_libc
#endif
#include "libgcc2.h"
#if defined (L_negdi2) || defined (L_divdi3) || defined (L_moddi3)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment