This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Small change to libcpp
- From: Kean Johnston <jkj at sco dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Mon, 14 Nov 2005 00:30:50 -0800
- Subject: Small change to libcpp
- Reply-to: jkj at sco dot com
Hi all,
May I commit the following patch? A change made on 2005-11-04 by
Joseph Myers to make error take a va_list * parameter incorrectly
uses ATTRIBUTE_PRINTF, when it should be using ATTRIBUTE_FPTR_PRINTF.
Without this change, it is not possible to bootstrap 4.1 with
a gcc < 3.3 (according to ansidecl.h).
Thanks!
Kean
2005-11-14 Kean Johnston <jkj@sco.com>
* include/cpplib.h (error): Use ATTRIBUTE_FPTR_PRINTF not
ATTRIBUTE_PRINTF, as its a function pointer not a normal function.
Index: include/cpplib.h
===================================================================
--- include/cpplib.h (revision 106884)
+++ include/cpplib.h (working copy)
@@ -474,7 +474,7 @@
/* Called to emit a diagnostic if client_diagnostic option is true.
This callback receives the translated message. */
void (*error) (cpp_reader *, int, const char *, va_list *)
- ATTRIBUTE_PRINTF(3,0);
+ ATTRIBUTE_FPTR_PRINTF(3,0);
};
/* Chain of directories to look for include files in. */