* cpplib.c (do_pragma): Remove unnecessary cb_line_change.
authorAlexandre Oliva <aoliva@redhat.com>
Tue, 16 Sep 2003 00:13:28 +0000 (00:13 +0000)
committerAlexandre Oliva <aoliva@gcc.gnu.org>
Tue, 16 Sep 2003 00:13:28 +0000 (00:13 +0000)
From-SVN: r71416

gcc/ChangeLog
gcc/cpplib.c

index 5c007028e9a4a2d94a12b95e5e9502aea362097c..dee5ae103c0db7b161d3d0a4570c88b30a36c646 100644 (file)
@@ -1,3 +1,7 @@
+2003-09-15  Alexandre Oliva  <aoliva@redhat.com>
+
+       * cpplib.c (do_pragma): Remove unnecessary cb_line_change.
+
 2003-09-15  Bob Wilson  <bob.wilson@acm.org>
 
        * config/xtensa/xtensa.c (xtensa_multibss_section_type_flags): Add
index 844a5daec6e12d8c5e67726553b5cae1e0281e64..6a0f3e0d64bb8848e40291715e02a8c2a30954e7 100644 (file)
@@ -1140,14 +1140,6 @@ do_pragma (cpp_reader *pfile)
        }
     }
 
-  /* FIXME.  This is an awful kludge to get the front ends to update
-     their notion of line number for diagnostic purposes.  The line
-     number should be passed to the handler and they should do it
-     themselves.  Stand-alone CPP must ignore us, otherwise it will
-     prefix the directive with spaces, hence the 1.  Ugh.  */
-  if (pfile->cb.line_change)
-    pfile->cb.line_change (pfile, token, 1);
-
   if (p)
     p->u.handler (pfile);
   else if (pfile->cb.def_pragma)