diagnostic.c (inform): New function.

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

From-SVN: r56022
This commit is contained in:
Gabriel Dos Reis 2002-08-04 14:38:40 +00:00 committed by Gabriel Dos Reis
parent e6858a8447
commit 04c1334cba
3 changed files with 20 additions and 0 deletions

View File

@ -1,3 +1,8 @@
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.

View File

@ -1398,6 +1398,20 @@ default_diagnostic_finalizer (context, diagnostic)
output_destroy_prefix (&context->buffer);
}
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;

View File

@ -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 */