[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
GCC 3.0, printf and macros.
From: |
Helmut Zeisel |
Subject: |
GCC 3.0, printf and macros. |
Date: |
Sat, 14 Jul 2001 15:55:31 +0200 |
I compiled texinfo-4.0 and binutils-2.10.1 with GCC 3.0.
In texinfo-4.0/info/info.c and binutils-2.10.1/binutils/nm.c
a compile time error occurred:
nm.c:1451:1: directives may not be used inside a macro argument
nm.c:1451:1: unterminated argument list invoking macro "printf"
nm.c: In function `print_symbol_info_bsd':
nm.c:1454: parse error before numeric constant
It seems that GCC implements "printf" as macro,
nm.c and info.c have an #ifdef between the parameters of printf,
which is not allowed for macro parameters.
A workaround is easy (just put the #ifdef
around the printf), but either the printf-implementation of GCC 3.0 or
the
respective sources should be changed.
Helmut
- GCC 3.0, printf and macros.,
Helmut Zeisel <=