This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Bootstrap failure in stage1 fix-header, !HAVE_DESIGNATED_INITIALIZERS
- To: Zack Weinberg <zack at wolery dot cumb dot org>
- Subject: Re: Bootstrap failure in stage1 fix-header, !HAVE_DESIGNATED_INITIALIZERS
- From: Neil Booth <NeilB at earthling dot net>
- Date: Sun, 20 Aug 2000 09:35:11 +0100
- Cc: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>, gcc-bugs at gcc dot gnu dot org
- References: <200008200511.BAA01858@caip.rutgers.edu> <20000820002514.I25518@wolery.cumb.org>
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;