From 04c1334cba6f0cf25e434f1b548c07f4a236140f Mon Sep 17 00:00:00 2001 From: Gabriel Dos Reis Date: Sun, 4 Aug 2002 14:38:40 +0000 Subject: [PATCH] diagnostic.c (inform): New function. * diagnostic.c (inform): New function. * diagnostic.h (inform): Declare. From-SVN: r56022 --- gcc/ChangeLog | 5 +++++ gcc/diagnostic.c | 14 ++++++++++++++ gcc/diagnostic.h | 1 + 3 files changed, 20 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4fd7bec..6476d47 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2002-08-04 Gabriel Dos Reis + + * diagnostic.c (inform): New function. + * diagnostic.h (inform): Declare. + 2002-08-03 David Edelsohn * config/rs6000/rs6000.md (movsi_internal1): Add nop mnemonic. diff --git a/gcc/diagnostic.c b/gcc/diagnostic.c index 2343d24..040af9b 100644 --- a/gcc/diagnostic.c +++ b/gcc/diagnostic.c @@ -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; { diff --git a/gcc/diagnostic.h b/gcc/diagnostic.h index 52d749a..c77f40a 100644 --- a/gcc/diagnostic.h +++ b/gcc/diagnostic.h @@ -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 */ -- 2.7.4