diff options
| author | Michael Matz <matz@suse.de> | 2016-10-18 03:38:59 +0200 |
|---|---|---|
| committer | Michael Matz <matz@suse.de> | 2016-12-15 17:49:56 +0100 |
| commit | 3db037387c16c7e582f76167d32d5c29ac32fb15 (patch) | |
| tree | cd472c5df0ec37e32d9d82ea96462d932c41b784 | |
| parent | d042e71e9f96cd2635e9d18622c4a2aa007821a4 (diff) | |
| download | tinycc-3db037387c16c7e582f76167d32d5c29ac32fb15.tar.gz tinycc-3db037387c16c7e582f76167d32d5c29ac32fb15.tar.bz2 | |
libtcc1: Don't use stdlib functions
libtcc1 is the compiler support library and therefore needs
to function in a freestanding environment. In particular
it can't just use fprintf or stderr, which it was on x86-64
(but only when compiled by GCC). The tight integration between
libtcc1 and tcc itself makes it impossible to ever reach that
case so the abort() there is enough. abort() is strictly speaking
also not available in a freestanding environment, but it often is
nevertheless.
| -rw-r--r-- | lib/libtcc1.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/libtcc1.c b/lib/libtcc1.c index 3b6d618..c3ff7fe 100644 --- a/lib/libtcc1.c +++ b/lib/libtcc1.c @@ -700,9 +700,6 @@ void *__va_arg(__va_list_struct *ap, return ap->overflow_arg_area - size; default: /* should never happen */ -#ifndef __TINYC__ - fprintf(stderr, "unknown ABI type for __va_arg\n"); -#endif abort(); } } |
