This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch libcpp]: PR/17349 - // comments cause weird behaviour with options -E -C


Hello,

this patch fixes the issue about -C and C++ comments as described in
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17349. This issue is that
within argument passing c++ comments need to be transformed into
C-style comments, too.
As within a C-style comment sequences of '/*' or '*/' would lead to
parse errors, this patch takes care on conversion that such sequences
getting filtered.

ChangeLog

       PR preprocessor/17349
        * lex.c (save_comment): Handle in argument passing c++
        comments special

Tested for x86_64-w64-mingw32, i686-w64-mingw32, and i686-pc-cygwin.
Ok for apply?

Regards,
Kai
-- 
|? (\_/) This is Bunny. Copy and paste
| (='.'=) Bunny into your signature to help
| (")_(") him gain world domination

Attachment: pr17349.diff
Description: Binary data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]