Remove printf optimization
Andreas Jaeger
aj@suse.de
Thu Aug 2 01:51:00 GMT 2001
Since gcc 3.0 optimizes not only printf but also fprintf, we can
remove this now.
Ok to commit?
2001-08-02 Andreas Jaeger <aj@suse.de>
* libio/bits/stdio.h (printf): Remove printf optimization since
GCC 3.0 can optimize printf.
============================================================
Index: libio/bits/stdio.h
--- libio/bits/stdio.h 2001/07/06 04:55:32 1.7
+++ libio/bits/stdio.h 2001/08/02 08:51:23
@@ -29,13 +29,6 @@
#ifdef __USE_EXTERN_INLINES
-/* Since version 2.97 GCC knows about `fprintf' and can optimize certain
- cases. Help gcc to optimize more code by mapping `printf' to the known
- `fprintf' function. Unfortunately we have to use a macro. */
-# if __GNUC_PREREQ (2,97)
-# define printf(fmt, args...) fprintf (stdout, fmt, ##args)
-# endif
-
/* Write formatted output to stdout from argument list ARG. */
__STDIO_INLINE int
vprintf (__const char *__restrict __fmt, _G_va_list __arg) __THROW
--
Andreas Jaeger
SuSE Labs aj@suse.de
private aj@arthur.inka.de
http://www.suse.de/~aj
More information about the Libc-hacker
mailing list