Patch for bug c++/17964 (cpp error locations for C++)

Gerald Pfeifer gerald@pfeifer.com
Sun Nov 13 22:19:00 GMT 2005


On Sun, 12 Nov 2005, Ian Lance Taylor wrote:
> No.  Instead, please change ATTRIBUTE_PRINTF to ATTRIBUTE_FPTR_PRINTF.

Like so?  This has passed a full bootstrap on i386-unknown-freebsd4.11
using the system compiler which is based on GCC 2.95.4.

(Joseph, indeed with my original patch I had the problem you hinted at;
something went wrong with my testing yesterday.)

Gerald

2005-11-13  Gerald Pfeifer  <gerald@pfeifer.com>
            Ian Lance Taylor  <ian@airs.com>

Index: libcpp/include/cpplib.h
===================================================================
--- libcpp/include/cpplib.h	(revision 106864)
+++ libcpp/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.  */



More information about the Gcc-patches mailing list