diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2006-11-17 03:32:33 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2006-11-17 03:32:33 +0000 |
commit | 8b2e1419cf24a33df5a87c99e367528b44dc28cf (patch) | |
tree | dfa50da1818a1e9c1d0588c060051c65583821a3 /runtime/GCCLibraries/libgcc | |
parent | b2b9c20b6121a54a41ee1c583a4bff4389622da2 (diff) |
Undo removal of the runtime libraries. While this may have been a bit
premature, these libraries will be going away for the 2.0 release. Other
arrangements for profiling, gc, etc. should be made in the next few months.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31807 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'runtime/GCCLibraries/libgcc')
-rw-r--r-- | runtime/GCCLibraries/libgcc/Makefile | 16 | ||||
-rw-r--r-- | runtime/GCCLibraries/libgcc/eprintf.c | 13 |
2 files changed, 29 insertions, 0 deletions
diff --git a/runtime/GCCLibraries/libgcc/Makefile b/runtime/GCCLibraries/libgcc/Makefile new file mode 100644 index 0000000000..74b9c91f4b --- /dev/null +++ b/runtime/GCCLibraries/libgcc/Makefile @@ -0,0 +1,16 @@ +##===- runtime/GCCLibraries/libgcc/Makefile ----------------*- Makefile -*-===## +# +# The LLVM Compiler Infrastructure +# +# This file was developed by the LLVM research group and is distributed under +# the University of Illinois Open Source License. See LICENSE.TXT for details. +# +##===----------------------------------------------------------------------===## + +LEVEL = ../../.. +BYTECODE_LIBRARY = 1 +DONT_BUILD_RELINKED = 1 +LIBRARYNAME = gcc +BYTECODE_DESTINATION = $(CFERuntimeLibDir) + +include $(LEVEL)/Makefile.common diff --git a/runtime/GCCLibraries/libgcc/eprintf.c b/runtime/GCCLibraries/libgcc/eprintf.c new file mode 100644 index 0000000000..d4229fad92 --- /dev/null +++ b/runtime/GCCLibraries/libgcc/eprintf.c @@ -0,0 +1,13 @@ +#include <stdio.h> +void abort(void); + +/* This is used by the `assert' macro. */ +void +__eprintf (const char *string, const char *expression, + unsigned int line, const char *filename) +{ + fprintf (stderr, string, expression, line, filename); + fflush (stderr); + abort (); +} + |