This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[mainline] PATCH to diagnostic.h
- From: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: gcc-patches at gcc dot gnu dot org
- Date: 25 May 2003 22:40:47 +0200
- Subject: [mainline] PATCH to diagnostic.h
- Organization: Integrable Solutions
Hi,
I don't know how ATTRIBUTE_PRINTF_2 got applied to verbatim() and
assimilated, but that was a lie. This patch corrects that.
Bootstrapped and regtested on an i686-pc-linux-gnu.
Applied.
-- Gaby
Index: ChangeLog
===================================================================
RCS file: /cvs/gcc/gcc/gcc/ChangeLog,v
retrieving revision 1.17933
diff -p -r1.17933 ChangeLog
*** ChangeLog 25 May 2003 04:17:58 -0000 1.17933
--- ChangeLog 25 May 2003 20:31:04 -0000
***************
*** 1,3 ****
--- 1,8 ----
+ 2003-05-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
+
+ * diagnostic.h (output_verbatim, verbatim): Remove printf
+ attribute.
+
2003-05-24 David Edelsohn <edelsohn@gnu.org>
* config/rs6000/rs6000.md (save_fpregs_{si,di}): Add length attribute.
Index: diagnostic.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/diagnostic.h,v
retrieving revision 1.56
diff -p -r1.56 diagnostic.h
*** diagnostic.h 13 May 2003 18:06:45 -0000 1.56
--- diagnostic.h 25 May 2003 20:31:04 -0000
*************** extern const char *output_finalize_messa
*** 327,336 ****
extern void output_clear_message_text PARAMS ((output_buffer *));
extern void output_printf PARAMS ((output_buffer *, const char *,
...)) ATTRIBUTE_PRINTF_2;
! extern void output_verbatim PARAMS ((output_buffer *, const char *,
! ...)) ATTRIBUTE_PRINTF_2;
! extern void verbatim PARAMS ((const char *, ...))
! ATTRIBUTE_PRINTF_1;
extern char *file_name_as_prefix PARAMS ((const char *));
extern void inform PARAMS ((const char *, ...));
--- 327,334 ----
extern void output_clear_message_text PARAMS ((output_buffer *));
extern void output_printf PARAMS ((output_buffer *, const char *,
...)) ATTRIBUTE_PRINTF_2;
! extern void output_verbatim (output_buffer *, const char *, ...);
! extern void verbatim (const char *, ...);
extern char *file_name_as_prefix PARAMS ((const char *));
extern void inform PARAMS ((const char *, ...));