diff options
author | Joseph Myers <jsm28@cam.ac.uk> | 2001-11-18 17:16:24 +0000 |
---|---|---|
committer | Joseph Myers <jsm28@gcc.gnu.org> | 2001-11-18 17:16:24 +0000 |
commit | aa99bd097969b1be33198b73898b4f8a3021a837 (patch) | |
tree | 61e4108779bd37a598484824d53cc0b8054e6445 /gcc/c-decl.c | |
parent | 6f4fdd10f3563b9b04c4491c6a55608b1d975651 (diff) | |
download | gcc-aa99bd097969b1be33198b73898b4f8a3021a837.zip gcc-aa99bd097969b1be33198b73898b4f8a3021a837.tar.gz gcc-aa99bd097969b1be33198b73898b4f8a3021a837.tar.bz2 |
c-decl.c (c_decode_option): Give deprecation warning for -traditional.
* c-decl.c (c_decode_option): Give deprecation warning for
-traditional.
* doc/invoke.texi (-traditional): Note that this option is
deprecated.
testsuite:
* gcc.dg/cpp/assert_trad1.c, gcc.dg/cpp/tr-paste.c,
gcc.dg/cpp/tr-str.c: Use -traditional-cpp instead of -traditional.
* gcc.dg/ext-glob.c: Expect -traditional deprecation warning.
From-SVN: r47147
Diffstat (limited to 'gcc/c-decl.c')
-rw-r--r-- | gcc/c-decl.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c index 5a34a2c..4d7ca2b 100644 --- a/gcc/c-decl.c +++ b/gcc/c-decl.c @@ -457,6 +457,7 @@ c_decode_option (argc, argv) if (!strcmp (p, "-ftraditional") || !strcmp (p, "-traditional")) { + warning ("-traditional is deprecated and may be removed"); flag_traditional = 1; flag_writable_strings = 1; } |