This is the mail archive of the gcc-bugs@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]

Re: gcc is now broken


H . J . Lu wrote:-

> You removed cpp_file_change from cpplib.h. But fix-header.c still
> uses it. Just do
> 
> # grep cpp_file_change *.?
> 
> in gcc. As the result, fix-header.c failed to compile. Could you
> please fix it?

Ah, thanks.  I'm about to apply the following patch.

Neil.

	* fix-header.c (cb_file_change): Update prototype.

Index: fix-header.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/fix-header.c,v
retrieving revision 1.68
diff -u -p -r1.68 fix-header.c
--- fix-header.c	2001/08/04 12:01:55	1.68
+++ fix-header.c	2001/08/12 09:47:36
@@ -199,7 +199,7 @@ static int inf_skip_spaces PARAMS ((int)
 static int inf_read_upto PARAMS ((sstring *, int));
 static int inf_scan_ident PARAMS ((sstring *, int));
 static int check_protection PARAMS ((int *, int *));
-static void cb_file_change PARAMS ((cpp_reader *, const cpp_file_change *));
+static void cb_file_change PARAMS ((cpp_reader *, const struct line_map *));
 
 static void
 add_symbols (flags, names)
@@ -598,12 +598,12 @@ check_macro_names (pfile, names)
 }
 
 static void
-cb_file_change (pfile, fc)
+cb_file_change (pfile, map)
      cpp_reader *pfile ATTRIBUTE_UNUSED;
-     const cpp_file_change *fc;
+     const struct line_map *map;
 {
   /* Just keep track of current file name.  */
-  cur_file = fc->map->to_file;
+  cur_file = map->to_file;
 }
 
 static void


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