]> gcc.gnu.org Git - gcc.git/commit
cppinit.c (cpp_handle_option): Recognize C++ comments under -std=gnu89.
authorZack Weinberg <zack@wolery.cumb.org>
Thu, 27 Jan 2000 22:29:07 +0000 (22:29 +0000)
committerZack Weinberg <zack@gcc.gnu.org>
Thu, 27 Jan 2000 22:29:07 +0000 (22:29 +0000)
commit75ec21db305f832534b2072c02a2a785c3cc0b4c
tree8fbdbe32865dcaea5f37fa4f80adc6849f91f96d
parent73b5cdf98ad368b41766577395b2a5bbd91e3f1b
cppinit.c (cpp_handle_option): Recognize C++ comments under -std=gnu89.

* cppinit.c (cpp_handle_option): Recognize C++ comments under
-std=gnu89.
* cpplib.c (skip_block_comment, skip_line_comment): Split code
out of...
(skip_comment) ... here.  Permit C++ comments in system
headers always.  Warn about C++ comments in user code under
-std=gnu89 -pedantic.
(copy_comment): Use skip_comment.
(cpp_skip_hspace, cpp_get_token): skip_comment can no longer
return EOF.
(consider_directive_while_skipping, do_else, do_endif): Call
validate_else unconditionally.
(validate_else): Check CPP_PEDANTIC here.  Accept non-comment
text after the conditional in a system header.
* cpplib.h (struct cpp_buffer): Add flag
warned_cplusplus_comments.

From-SVN: r31654
gcc/ChangeLog
gcc/cppinit.c
gcc/cpplib.c
gcc/cpplib.h
This page took 0.063097 seconds and 5 git commands to generate.