This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Small change to libcpp


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. */


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]