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: Bootstrap failure in stage1 fix-header, !HAVE_DESIGNATED_INITIALIZERS


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;

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