This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.
Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
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
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |