* cppinit.c (cpp_handle_option): Recognize C++ comments under
authorzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 27 Jan 2000 22:29:07 +0000 (22:29 +0000)
committerzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 27 Jan 2000 22:29:07 +0000 (22:29 +0000)
commit3dace059fc794b3d690f13fa662c6eda9fdb0eb9
tree8fbdbe32865dcaea5f37fa4f80adc6849f91f96d
parent8044c206a5c5c4dd4de8ee17708e9ae42ffb75eb
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31654 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/cppinit.c
gcc/cpplib.c
gcc/cpplib.h