cp-tree.h (cp_cpp_error), [...]): Take va_list* parameter.
authorJoseph Myers <joseph@codesourcery.com>
Fri, 4 Nov 2005 01:16:32 +0000 (01:16 +0000)
committerJoseph Myers <jsm28@gcc.gnu.org>
Fri, 4 Nov 2005 01:16:32 +0000 (01:16 +0000)
gcc/cp:
* cp-tree.h (cp_cpp_error), error.c (cp_cpp_error): Take va_list*
parameter.

libcpp:
* include/cpplib.h (struct cpp_callbacks): Make error take
va_list* parameter.
* errors.c (cpp_error): Update call to callback.

From-SVN: r106466

gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/error.c
libcpp/ChangeLog
libcpp/errors.c
libcpp/include/cpplib.h

index 5d281d31361db93149294b702c6a58ff7540bc81..a270fba8e8ac6822aa38b8f5f11d8a0310fc5fa3 100644 (file)
@@ -1,3 +1,8 @@
+2005-11-04  Joseph S. Myers  <joseph@codesourcery.com>
+
+       * cp-tree.h (cp_cpp_error), error.c (cp_cpp_error): Take va_list*
+       parameter.
+
 2005-11-03  Joseph S. Myers  <joseph@codesourcery.com>
 
        PR c++/17964
index e1ca9f3bea7a596abe90c927a179799350d6df7d..978a95f85af47cc51d01a097b46f1b61932da333 100644 (file)
@@ -4438,7 +4438,7 @@ extern void cp_genericize                 (tree);
 #define ATTRIBUTE_GCC_CXXDIAG(m, n) ATTRIBUTE_NONNULL(m)
 #endif
 extern void cp_cpp_error                       (cpp_reader *, int,
-                                                const char *, va_list)
+                                                const char *, va_list *)
      ATTRIBUTE_GCC_CXXDIAG(3,0);
 
 #endif /* ! GCC_CP_TREE_H */
index d5144b446f73346a05a870bc77a953b853051482..22c2d304d88ca02e84dfb14619d2a2a766fcd57e 100644 (file)
@@ -2334,7 +2334,7 @@ cp_printer (pretty_printer *pp, text_info *text, const char *spec,
 
 void
 cp_cpp_error (cpp_reader *pfile ATTRIBUTE_UNUSED, int level,
-             const char *msg, va_list ap)
+             const char *msg, va_list *ap)
 {
   diagnostic_info diagnostic;
   diagnostic_t dlevel;
@@ -2356,7 +2356,7 @@ cp_cpp_error (cpp_reader *pfile ATTRIBUTE_UNUSED, int level,
     default:
       gcc_unreachable ();
     }
-  diagnostic_set_info_translated (&diagnostic, msg, &ap,
+  diagnostic_set_info_translated (&diagnostic, msg, ap,
                                  input_location, dlevel);
   report_diagnostic (&diagnostic);
 }
index 3a489b4c1c0bc139bb0c856e237e5059598adec9..422203c64a19395f4f79858918a23d2fab0e9fc4 100644 (file)
@@ -1,3 +1,9 @@
+2005-11-04  Joseph S. Myers  <joseph@codesourcery.com>
+
+       * include/cpplib.h (struct cpp_callbacks): Make error take
+       va_list* parameter.
+       * errors.c (cpp_error): Update call to callback.
+
 2005-11-03  Andrew Pinski  <pinskia@physics.uc.edu>
 
        PR preprocessor/22042
index 554d9e3c5f1a7cf2f9c682d99ffa1463b0cd241b..97de4900001b99bc5f081647614d7fc3f18c3b17 100644 (file)
@@ -141,7 +141,7 @@ cpp_error (cpp_reader * pfile, int level, const char *msgid, ...)
   va_start (ap, msgid);
 
   if (CPP_OPTION (pfile, client_diagnostic))
-    pfile->cb.error (pfile, level, _(msgid), ap);
+    pfile->cb.error (pfile, level, _(msgid), &ap);
   else
     {
       if (CPP_OPTION (pfile, traditional))
index c5d8e85391a4a4e622e3d8a8e490677c62b450d1..adae96b35605b7acc4d2322a31d1b345d7da5fa8 100644 (file)
@@ -473,7 +473,7 @@ struct cpp_callbacks
 
   /* 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)
+  void (*error) (cpp_reader *, int, const char *, va_list *)
        ATTRIBUTE_PRINTF(3,0);
 };