This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: gcc is now broken
- To: "H . J . Lu" <hjl at lucon dot org>
- Subject: Re: gcc is now broken
- From: Neil Booth <neil at daikokuya dot demon dot co dot uk>
- Date: Sun, 12 Aug 2001 10:48:06 +0100
- Cc: Franz dot Sirl-kernel at lauterbach dot com, gcc-bugs at gcc dot gnu dot org,gcc-patches at gcc dot gnu dot org
- References: <20010811173937.A5975@lucon.org>
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