diff options
author | Zack Weinberg <zack@gcc.gnu.org> | 2000-06-01 20:06:57 +0000 |
---|---|---|
committer | Zack Weinberg <zack@gcc.gnu.org> | 2000-06-01 20:06:57 +0000 |
commit | d7a2e0f70bda2f8a6bc82ca8da8cd069a4dbf954 (patch) | |
tree | f453ae8daad4bc2e728ee46239aaa1feccfd364b /gcc/cpplex.c | |
parent | 0ba154aa230cbd0dc92a8500919922a378df4767 (diff) | |
download | gcc-d7a2e0f70bda2f8a6bc82ca8da8cd069a4dbf954.zip gcc-d7a2e0f70bda2f8a6bc82ca8da8cd069a4dbf954.tar.gz gcc-d7a2e0f70bda2f8a6bc82ca8da8cd069a4dbf954.tar.bz2 |
[multiple changes]
2000-06-01 Zack Weinberg <zack@wolery.cumb.org>
* cpplex.c (maybe_macroexpand): Use CPP_WTRADITIONAL. Improve
error message.
* cpplib.c (parse_include): Remove support for VAX-C
"#include starlet" misfeature.
* gcc.dg/cpp-tradwarn2.c: Update egrep pattern.
2000-05-31 Laurynas Biveinis <lauras@softhome.net>
* cppfiles.c: conditionally define O_BINARY.
(open_include_file): pass O_BINARY to open().
From-SVN: r34344
Diffstat (limited to 'gcc/cpplex.c')
-rw-r--r-- | gcc/cpplex.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/cpplex.c b/gcc/cpplex.c index b35f298..1dd3e9a 100644 --- a/gcc/cpplex.c +++ b/gcc/cpplex.c @@ -1699,9 +1699,9 @@ maybe_macroexpand (pfile, written) CPP_PUTC (pfile, ' '); /* K+R treated this as a hard error. */ - if (CPP_OPTION (pfile, warn_traditional)) + if (CPP_WTRADITIONAL (pfile)) cpp_warning (pfile, - "traditional C rejects function macro %s in non-function context", + "function macro %s must be used with arguments in traditional C", hp->name); return 0; } |