aboutsummaryrefslogtreecommitdiff
path: root/gcc/libgcc2.c
diff options
context:
space:
mode:
authorZack Weinberg <zackw@stanford.edu>2001-05-14 02:46:22 +0000
committerZack Weinberg <zack@gcc.gnu.org>2001-05-14 02:46:22 +0000
commit3fe68d0af3a9ad980b7989620028a4288e4d0a5c (patch)
treeeac1bee1e3ad984d5ff14da3a9acb8ba27b8d62d /gcc/libgcc2.c
parent8b9df536aeed1812d027b08174a46c0b249ad19b (diff)
downloadgcc-3fe68d0af3a9ad980b7989620028a4288e4d0a5c.zip
gcc-3fe68d0af3a9ad980b7989620028a4288e4d0a5c.tar.gz
gcc-3fe68d0af3a9ad980b7989620028a4288e4d0a5c.tar.bz2
libgcc2.c, libgcc2.h: Restore __eprintf.
* libgcc2.c, libgcc2.h: Restore __eprintf. Label as used for binary backward compat only. * Makefile.in (LIB2FUNCS_ST): New. Put _eprintf here, not in LIB2FUNCS. Pass it to mklibgcc. * mklibgcc.in: Handle LIB2FUNCS_ST. * Makefile.in (installdirs): Don't create $(gcc_tooldir). From-SVN: r42057
Diffstat (limited to 'gcc/libgcc2.c')
-rw-r--r--gcc/libgcc2.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/gcc/libgcc2.c b/gcc/libgcc2.c
index b0daa70..177931d 100644
--- a/gcc/libgcc2.c
+++ b/gcc/libgcc2.c
@@ -1238,6 +1238,28 @@ __gcc_bcmp (const unsigned char *s1, const unsigned char *s2, size_t size)
}
#endif
+
+/* __eprintf used to be used by GCC's private version of <assert.h>.
+ We no longer provide that header, but this routine remains in libgcc.a
+ for binary backward compatibility. Note that it is not included in
+ the shared version of libgcc. */
+#ifdef L_eprintf
+#ifndef inhibit_libc
+
+#undef NULL /* Avoid errors if stdio.h and our stddef.h mismatch. */
+#include <stdio.h>
+
+void
+__eprintf (const char *string, const char *expression,
+ unsigned int line, const char *filename)
+{
+ fprintf (stderr, string, expression, line, filename);
+ fflush (stderr);
+ abort ();
+}
+
+#endif
+#endif
#ifdef L_bb