Bootstrap failure in stage1 fix-header, !HAVE_DESIGNATED_INITIALIZERS
Neil Booth
NeilB@earthling.net
Sun Aug 20 01:35:00 GMT 2000
Zack Weinberg wrote:-
> Argh. Right. Add a call to cpp_init() just before the call to
> cpp_reader_init(&scan_in) in fix-header.c:read_scan_file. That should
> fix the problem. (If it does, please check in a patch to that effect.)
OK, I've done this.
Neil.
* fix-header.c (main): Initialize cpplib.
Index: fix-header.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/fix-header.c,v
retrieving revision 1.47
diff -u -p -r1.47 fix-header.c
--- fix-header.c 2000/08/20 08:28:45 1.47
+++ fix-header.c 2000/08/20 08:32:50
@@ -609,7 +609,9 @@ read_scan_file (in_fname, argc, argv)
obstack_init (&scan_file_obstack);
+ cpp_init (); /* Initialize cpplib. */
cpp_reader_init (&scan_in);
+
/* We are going to be scanning a header file out of its proper context,
so ignore warnings and errors. */
CPP_OPTION (&scan_in, inhibit_warnings) = 1;
More information about the Gcc-bugs
mailing list