This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[mainline] PATCH to diagnostic.c: Remove pedwarn_with_file_and_line
- From: gcc at integrable-solutions dot net
- To: gcc-patches at gcc dot gnu dot org
- Date: 04 May 2003 17:19:50 +0200
- Subject: [mainline] PATCH to diagnostic.c: Remove pedwarn_with_file_and_line
- Organization: Integrable Solutions
This patchlet removes the pedwarn_with_file_and_line junk.
Bootstrapped and tested on an i686-pc-linux-gnu.
-- Gaby
Index: ChangeLog
===================================================================
RCS file: /cvs/gcc/gcc/gcc/ChangeLog,v
retrieving revision 1.17688
diff -p -r1.17688 ChangeLog
*** ChangeLog 4 May 2003 14:27:10 -0000 1.17688
--- ChangeLog 4 May 2003 15:01:07 -0000
***************
*** 1,3 ****
--- 1,8 ----
+ 2003-05-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
+
+ * toplev.h (pedwarn_with_file_and_line): Don't declare.
+ * diagnostic.c (pedwarn_with_file_and_line): Remove.
+
2003-05-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
* varasm.c (assemble_variable): Don't use error_with_file_and_line.
Index: toplev.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/toplev.h,v
retrieving revision 1.90
diff -p -r1.90 toplev.h
*** toplev.h 2 Mar 2003 20:00:35 -0000 1.90
--- toplev.h 4 May 2003 15:01:07 -0000
*************** extern void error PARAMS ((const char
*** 59,66 ****
extern void fatal_error PARAMS ((const char *, ...))
ATTRIBUTE_NORETURN;
extern void pedwarn PARAMS ((const char *, ...));
- extern void pedwarn_with_file_and_line PARAMS ((const char *, int,
- const char *, ...));
extern void warning_with_file_and_line PARAMS ((const char *, int,
const char *, ...));
extern void error_with_file_and_line PARAMS ((const char *, int,
--- 59,64 ----
Index: diagnostic.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/diagnostic.c,v
retrieving revision 1.108
diff -p -r1.108 diagnostic.c
*** diagnostic.c 2 May 2003 13:34:52 -0000 1.108
--- diagnostic.c 4 May 2003 15:01:07 -0000
*************** pedwarn_with_decl VPARAMS ((tree decl, c
*** 993,1015 ****
VA_CLOSE (ap);
}
- /* Same as above but within the context FILE and LINE. */
- void
- pedwarn_with_file_and_line VPARAMS ((const char *file, int line,
- const char *msgid, ...))
- {
- diagnostic_info diagnostic;
- VA_OPEN (ap, msgid);
- VA_FIXEDARG (ap, const char *, file);
- VA_FIXEDARG (ap, int, line);
- VA_FIXEDARG (ap, const char *, msgid);
-
- diagnostic_set_info (&diagnostic, _(msgid), &ap, file, line,
- pedantic_error_kind ());
- report_diagnostic (&diagnostic);
- VA_CLOSE (ap);
- }
-
/* Just apologize with MSGID. */
void
sorry VPARAMS ((const char *msgid, ...))
--- 993,998 ----