Fix init_c_lex prototype
Andreas Jaeger
aj@suse.de
Tue Mar 4 17:45:00 GMT 2003
This patch set:
2003-03-04 Neil Booth <neil@daikokuya.co.uk>
* Makefile.in: Update.
* c-common.c (flag_no_line_commands, flag_no_output,
flag_dump_macros, flag_dump_includes): New.
* c-common.h (flag_no_line_commands, flag_no_output,
flag_dump_macros, flag_dump_includes, preprocess_file): New.
(init_c_lex): Update prototype.
broke bootstrap with treelang:
/cvs/gcc/gcc/treelang/treetree.c:937: error: conflicting types for `init_c_lex'
/cvs/gcc/gcc/c-common.h:1264: error: previous declaration of `init_c_lex'
I'm currently testing the appended patch and will commit it as obvious
after bootstrapping on i686-linux-gnu,
Andreas
2003-03-04 Andreas Jaeger <aj@suse.de>
* treetree.c (init_c_lex): Follow change to c-common.h.
============================================================
Index: gcc/treelang/treetree.c
--- gcc/treelang/treetree.c 1 Mar 2003 02:05:37 -0000 1.14
+++ gcc/treelang/treetree.c 4 Mar 2003 17:44:09 -0000
@@ -933,7 +933,7 @@ cpp_create_reader (enum c_lang lang ATTR
/* Should not be called for treelang. */
const char *
-init_c_lex (const char *filename ATTRIBUTE_UNUSED)
+init_c_lex (void)
{
abort ();
}
--
Andreas Jaeger
SuSE Labs aj@suse.de
private aj@arthur.inka.de
http://www.suse.de/~aj
More information about the Gcc-patches
mailing list