cppinit.c (cpp_create_reader, [...]): Warn about trigraphs unless explicity set or...
authorNeil Booth <neil@gcc.gnu.org>
Sun, 4 May 2003 20:03:55 +0000 (20:03 +0000)
committerNeil Booth <neil@gcc.gnu.org>
Sun, 4 May 2003 20:03:55 +0000 (20:03 +0000)
commita8eb6044a9468a56cab63890820e17101ce8fd64
treedb0e598a611fbe90ebcaf267b9665fd02c67a70f
parent09780dfb652960d422da1c5a9d81dc536cdf09f4
cppinit.c (cpp_create_reader, [...]): Warn about trigraphs unless explicity set or -trigraphs.

* cppinit.c (cpp_create_reader, post_options): Warn about
trigraphs unless explicity set or -trigraphs.
* cpplex.c (warn_in_comment): New.
(_cpp_process_line_notes): Better handling of -Wtrigraphs.
(_cpp_skip_block_comment): Add call to _cpp_process_line_notes.
* doc/cppopts.texi, doc/cpp.texi: Update.
testsuite:
* gcc.dg/cpp/Wtrigraphs.c: Update.
* gcc.dg/cpp/Wtrigraphs-2.c: New tests.

From-SVN: r66459
gcc/cppinit.c
gcc/cpplex.c
gcc/doc/cpp.texi
gcc/doc/cppopts.texi
gcc/testsuite/gcc.dg/cpp/Wtrigraphs-2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/cpp/Wtrigraphs.c