cpplib: Remove some code.

Neil Booth neil@daikokuya.co.uk
Sat Apr 26 07:30:00 GMT 2003


Not necessary.

Neil.

	* _cpp_lex_direct: Remove pointless code.

Index: cpplex.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cpplex.c,v
retrieving revision 1.231
diff -u -p -r1.231 cpplex.c
--- cpplex.c	24 Apr 2003 20:03:54 -0000	1.231
+++ cpplex.c	26 Apr 2003 07:28:25 -0000
@@ -776,12 +776,6 @@ _cpp_lex_direct (pfile)
       if (!_cpp_get_fresh_line (pfile))
 	{
 	  result->type = CPP_EOF;
-	  if (!pfile->state.in_directive)
-	    {
-	      /* Tell the compiler the line number of the EOF token.  */
-	      result->line = pfile->line;
-	      result->flags = BOL;
-	    }
 	  return result;
 	}
       if (!pfile->keep_tokens)



More information about the Gcc-patches mailing list