aboutsummaryrefslogtreecommitdiff
path: root/gcc/diagnostic.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@gcc.gnu.org>2000-06-26 09:42:23 -0700
committerRichard Henderson <rth@gcc.gnu.org>2000-06-26 09:42:23 -0700
commit903f51d97fc06fde3900a9628872007bf71eecac (patch)
tree3775b34b16d78fb402deb53f4c3ecccc2f5d7168 /gcc/diagnostic.c
parent774d2baf5040b0a86bb07931e01b4d2811611eab (diff)
downloadgcc-903f51d97fc06fde3900a9628872007bf71eecac.zip
gcc-903f51d97fc06fde3900a9628872007bf71eecac.tar.gz
gcc-903f51d97fc06fde3900a9628872007bf71eecac.tar.bz2
[multiple changes]
2000-06-26 Joseph S. Myers <jsm28@cam.ac.uk> * c-decl.c (grokdeclarator): Don't warn about `long long' in C99. Make warnings about implicit int be pedwarns in C99. Don't warn about duplicate type qualifiers in C99. (start_function): Make warning about implict int return type be a pedwarn in C99. * c-lex.c (yylex): Don't warn about `long long' in C99. * c-typeck.c (c_expand_return): In C99, always pedwarn about `return' with no value in function returning non-void. 2000-06-26 Richard Henderson <rth@cygnus.com> * c-typeck.c (pedwarn_c99): New. * diagnostic.c (verror, vwarning, vpedwarn): Export. * toplev.h: Prototype them. From-SVN: r34713
Diffstat (limited to 'gcc/diagnostic.c')
-rw-r--r--gcc/diagnostic.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/gcc/diagnostic.c b/gcc/diagnostic.c
index 36d4b40..564c488 100644
--- a/gcc/diagnostic.c
+++ b/gcc/diagnostic.c
@@ -64,14 +64,11 @@ static void v_error_with_file_and_line PARAMS ((const char *, int,
const char *, va_list));
static void v_error_with_decl PARAMS ((tree, const char *, va_list));
static void v_error_for_asm PARAMS ((rtx, const char *, va_list));
-static void verror PARAMS ((const char *, va_list));
static void vfatal PARAMS ((const char *, va_list)) ATTRIBUTE_NORETURN;
static void v_warning_with_file_and_line PARAMS ((const char *, int,
const char *, va_list));
static void v_warning_with_decl PARAMS ((tree, const char *, va_list));
static void v_warning_for_asm PARAMS ((rtx, const char *, va_list));
-static void vwarning PARAMS ((const char *, va_list));
-static void vpedwarn PARAMS ((const char *, va_list));
static void v_pedwarn_with_decl PARAMS ((tree, const char *, va_list));
static void v_pedwarn_with_file_and_line PARAMS ((const char *, int,
const char *, va_list));
@@ -858,7 +855,7 @@ v_error_for_asm (insn, msgid, ap)
/* Report an error at the current line number. */
-static void
+void
verror (msgid, ap)
const char *msgid;
va_list ap;
@@ -946,7 +943,7 @@ v_warning_for_asm (insn, msgid, ap)
/* Report a warning at the current line number. */
-static void
+void
vwarning (msgid, ap)
const char *msgid;
va_list ap;
@@ -957,7 +954,7 @@ vwarning (msgid, ap)
/* These functions issue either warnings or errors depending on
-pedantic-errors. */
-static void
+void
vpedwarn (msgid, ap)
const char *msgid;
va_list ap;