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]

Recognise comments in preprocessed source


Unfortunately we weren't able to build much of a concensus on this.
As a joint maintainer of cpplib, I guess it's my job to make a
decision.

I think accepting comments, which presumably have come from the -C
option, is more consistent and helpful than not doing so.  So I've
decided to revert Nathan's patch of 2 weeks ago that disabled this
"feature".

I've applied this to branch and mainline.

Neil.

	* cpplex.c (_cpp_lex_token): Revert patch of 16 May 2001
	so that we do accept comments in preprocessed input.

Index: cpplex.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cpplex.c,v
retrieving revision 1.144
diff -u -p -r1.144 cpplex.c
--- cpplex.c	2001/05/23 22:50:24	1.144
+++ cpplex.c	2001/05/30 21:12:32
@@ -1001,8 +1001,6 @@ _cpp_lex_token (pfile, result)
 	ACCEPT_CHAR (CPP_DIV_EQ);
       if (c != '/' && c != '*')
 	break;
-      if (buffer->from_stage3)
-	break;
       
       if (c == '*')
 	{


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