[Bug c/61854] Warning single-line comment for -std=c89?
mpolacek at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Sep 17 21:50:00 GMT 2014
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61854
--- Comment #4 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Wed Sep 17 21:49:46 2014
New Revision: 215339
URL: https://gcc.gnu.org/viewcvs?rev=215339&root=gcc&view=rev
Log:
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.
Added:
trunk/gcc/testsuite/gcc.dg/cpp/pr61854-1.c
trunk/gcc/testsuite/gcc.dg/cpp/pr61854-2.c
trunk/gcc/testsuite/gcc.dg/cpp/pr61854-3.c
trunk/gcc/testsuite/gcc.dg/cpp/pr61854-3.h
trunk/gcc/testsuite/gcc.dg/cpp/pr61854-4.c
trunk/gcc/testsuite/gcc.dg/cpp/pr61854-5.c
trunk/gcc/testsuite/gcc.dg/cpp/pr61854-6.c
trunk/gcc/testsuite/gcc.dg/cpp/pr61854-7.c
trunk/gcc/testsuite/gcc.dg/cpp/pr61854-c90.c
trunk/gcc/testsuite/gcc.dg/cpp/pr61854-c94.c
Modified:
trunk/gcc/testsuite/ChangeLog
trunk/libcpp/ChangeLog
trunk/libcpp/init.c
trunk/libcpp/lex.c
More information about the Gcc-bugs
mailing list