diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2012-10-16 18:45:24 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2012-10-16 18:45:24 +0000 |
commit | 5eceb3958ee6cb42d57d4fe52dd76fb03b178edf (patch) | |
tree | fcddcedf0dc6b3aab54a8f7e85d619e574aa0e11 /newlib/libc/stdio | |
parent | 71c13b96338eeb7021c211c1819cba700e85b61c (diff) | |
download | newlib-5eceb3958ee6cb42d57d4fe52dd76fb03b178edf.zip newlib-5eceb3958ee6cb42d57d4fe52dd76fb03b178edf.tar.gz newlib-5eceb3958ee6cb42d57d4fe52dd76fb03b178edf.tar.bz2 |
* libc/include/sys/features.h (__GNUC_PREREQ): Define. Use
throughout in place of explicit GNUC version checks.
* libc/include/_ansi.h (_NOINLINE): Define.
(_NOINLINE_STATIC): Define.
* libc/stdio/vfprintf.c (__sbprintf): Define _NOINLINE_STATIC.
Diffstat (limited to 'newlib/libc/stdio')
-rw-r--r-- | newlib/libc/stdio/vfprintf.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/newlib/libc/stdio/vfprintf.c b/newlib/libc/stdio/vfprintf.c index 4b165e0..6dfa9c8 100644 --- a/newlib/libc/stdio/vfprintf.c +++ b/newlib/libc/stdio/vfprintf.c @@ -333,8 +333,10 @@ int __sprint_r (struct _reent *, FILE *, register struct __suio *); * Helper function for `fprintf to unbuffered unix file': creates a * temporary buffer. We only work on write-only files; this avoids * worries about ungetc buffers and so forth. + * + * Make sure to avoid inlining when optimizing for size. */ -static int +_NOINLINE_STATIC int _DEFUN(__sbprintf, (rptr, fp, fmt, ap), struct _reent *rptr _AND register FILE *fp _AND |