summaryrefslogtreecommitdiffstats
path: root/gcc/libgcc2.c
diff options
context:
space:
mode:
authorzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>2001-05-14 02:46:22 +0000
committerzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>2001-05-14 02:46:22 +0000
commit0bad1e662140d3048831aa32ca183659c251557b (patch)
treeeac1bee1e3ad984d5ff14da3a9acb8ba27b8d62d /gcc/libgcc2.c
parentb4868299f38baac278032944bfc6e8457619359f (diff)
downloadppe42-gcc-0bad1e662140d3048831aa32ca183659c251557b.tar.gz
ppe42-gcc-0bad1e662140d3048831aa32ca183659c251557b.zip
* 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). git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@42057 138bc75d-0d04-0410-961f-82ee72b054a4
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 b0daa70d9e1..177931df4c9 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
OpenPOWER on IntegriCloud