re PR c/61854 (Warning single-line comment for -std=c89?)
authorMarek Polacek <polacek@redhat.com>
Wed, 17 Sep 2014 21:49:46 +0000 (21:49 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Wed, 17 Sep 2014 21:49:46 +0000 (21:49 +0000)
commit909eb89ca5b48b9a5645358e1cb5c949ec3f1edb
treed873bfc33c03e881e036aa4a39cd18516df27f6b
parent010718fc37a1e84698479677381e654169082cd0
re PR c/61854 (Warning single-line comment for -std=c89?)

PR c/61854
libcpp/
* init.c (struct lang_flags): Remove cplusplus_comments.
(cpp_set_lang): Likewise.
(post_options): Likewise.
* lex.c (_cpp_lex_direct): Disallow C++ style comments in C90/C94.
testsuite/
* gcc.dg/cpp/pr61854-1.c: New test.
* gcc.dg/cpp/pr61854-2.c: New test.
* gcc.dg/cpp/pr61854-3.c: New test.
* gcc.dg/cpp/pr61854-3.h: New test.
* gcc.dg/cpp/pr61854-4.c: New test.
* gcc.dg/cpp/pr61854-5.c: New test.
* gcc.dg/cpp/pr61854-6.c: New test.
* gcc.dg/cpp/pr61854-7.c: New test.
* gcc.dg/cpp/pr61854-c90.c: New test.
* gcc.dg/cpp/pr61854-c94.c: New test.

From-SVN: r215339
14 files changed:
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/cpp/pr61854-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/cpp/pr61854-2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/cpp/pr61854-3.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/cpp/pr61854-3.h [new file with mode: 0644]
gcc/testsuite/gcc.dg/cpp/pr61854-4.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/cpp/pr61854-5.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/cpp/pr61854-6.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/cpp/pr61854-7.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/cpp/pr61854-c90.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/cpp/pr61854-c94.c [new file with mode: 0644]
libcpp/ChangeLog
libcpp/init.c
libcpp/lex.c