aboutsummaryrefslogtreecommitdiff
path: root/gcc/libgcc2.c
diff options
context:
space:
mode:
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