aboutsummaryrefslogtreecommitdiff
path: root/gcc/f/bad.def
diff options
context:
space:
mode:
authorCraig Burley <burley@gnu.org>1998-02-08 18:55:11 -0500
committerJeff Law <law@gcc.gnu.org>1998-02-08 16:55:11 -0700
commit34bea46406d7ba187df47051b01a60ea29fde38c (patch)
tree67df2486cf61873ee6cf22faad31924eda865415 /gcc/f/bad.def
parentaea955a2dfe37f7f7c82f36ff0cf018695bc2b70 (diff)
downloadgcc-34bea46406d7ba187df47051b01a60ea29fde38c.zip
gcc-34bea46406d7ba187df47051b01a60ea29fde38c.tar.gz
gcc-34bea46406d7ba187df47051b01a60ea29fde38c.tar.bz2
Fix -fpedantic combined with `F()' invocation,
also -fugly-comma combined with `IARGC()' invocation: * bad.def (FFEBAD_NULL_ARGUMENT_W): New diagnostic. * expr.c (ffeexpr_finished_): Don't reject null expressions in the argument-expression context -- let outer context handle that. (ffeexpr_token_arguments_): Warn about null expressions here if -fpedantic (as appropriate). Obey -fugly-comma for only external-procedure invocations. From-SVN: r17793
Diffstat (limited to 'gcc/f/bad.def')
-rw-r--r--gcc/f/bad.def2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/f/bad.def b/gcc/f/bad.def
index 507bfed..347cd44 100644
--- a/gcc/f/bad.def
+++ b/gcc/f/bad.def
@@ -539,6 +539,8 @@ FFEBAD_MSGS2 (FFEBAD_TOO_MANY_DIMS, FATAL,
"Too many dimensions at %0")
FFEBAD_MSGS1 (FFEBAD_NULL_ARGUMENT, FATAL,
"Null argument at %0 for statement function reference at %1")
+FFEBAD_MSGS1 (FFEBAD_NULL_ARGUMENT_W, WARN,
+"Null argument at %0 for procedure invocation at %1")
FFEBAD_MSGS1 (FFEBAD_TOO_FEW_ARGUMENTS, FATAL,
"%A too few arguments (starting with dummy argument `%B') as of %0 for statement function reference at %1")
FFEBAD_MSGS1 (FFEBAD_TOO_MANY_ARGUMENTS, FATAL,