Commit 04c1334c by Gabriel Dos Reis Committed by Gabriel Dos Reis

diagnostic.c (inform): New function.


	* diagnostic.c (inform): New function.
	* diagnostic.h (inform): Declare.

From-SVN: r56022
parent e6858a84
2002-08-04 Gabriel Dos Reis <gdr@nerim.net>
* diagnostic.c (inform): New function.
* diagnostic.h (inform): Declare.
2002-08-03 David Edelsohn <edelsohn@gnu.org>
* config/rs6000/rs6000.md (movsi_internal1): Add nop mnemonic.
......
......@@ -1399,6 +1399,20 @@ default_diagnostic_finalizer (context, diagnostic)
}
void
inform VPARAMS ((const char *msgid, ...))
{
diagnostic_info diagnostic;
VA_OPEN (ap, msgid);
VA_FIXEDARG (ap, const char *, msgid);
diagnostic_set_info (&diagnostic, msgid, &ap, input_filename, lineno,
DK_NOTE);
report_diagnostic (&diagnostic);
VA_CLOSE (ap);
}
void
warn_deprecated_use (node)
tree node;
{
......
......@@ -325,5 +325,6 @@ extern void output_verbatim PARAMS ((output_buffer *, const char *,
extern void verbatim PARAMS ((const char *, ...))
ATTRIBUTE_PRINTF_1;
extern char *file_name_as_prefix PARAMS ((const char *));
extern void inform PARAMS ((const char *, ...)) ATTRIBUTE_PRINTF_1;
#endif /* ! GCC_DIAGNOSTIC_H */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment