This is the mail archive of the gcc-regression@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]
Other format: [Raw text]

Re: GCC build failed for native with your patch on 2003-03-15T13:30:01Z.


GCC regression checker wrote:-

> With your recent patch, GCC does not compile on:
>  native
> Attached is build output for those targets.
 
> fixproto: populating `include'
> /Users/regress/tbox/cvs-gcc/gcc/gcc/fixproto: line 282: 15360 Bus error               $FIX_HEADER $rel_source_file $abs_source_file $abs_target_file ${DEFINES} $include_path
> make[2]: *** [stmp-fixproto] Error 1
> make[1]: *** [stage1_build] Error 2
> make: *** [bootstrap] Error 2
> + '[' -s gcc/.bad_compare ']'

Agh.  We really need to initialize the cpplib hash tables earlier;
delayed initialization is a thing that was necessary in the past.
I think this works; I don't have a fixheader-using machine to test it
with.  This worked with a simple fake on my machine.

Neil.

	* fix-header.c (read_scan_file): Read main file before handling -D.

Index: fix-header.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/fix-header.c,v
retrieving revision 1.89
diff -u -p -r1.89 fix-header.c
--- fix-header.c	15 Mar 2003 13:14:00 -0000	1.89
+++ fix-header.c	15 Mar 2003 14:58:59 -0000
@@ -632,6 +632,9 @@ read_scan_file (in_fname, argc, argv)
   options->inhibit_warnings = 1;
   options->inhibit_errors = 1;
 
+  if (! cpp_read_main_file (scan_in, in_fname, NULL))
+    exit (FATAL_EXIT_CODE);
+
   for (i = 0; i < argc; i += strings_processed)
     {
       strings_processed = 0;
@@ -669,8 +672,6 @@ read_scan_file (in_fname, argc, argv)
   register_include_chains (scan_in, NULL /* sysroot */, NULL /* iprefix */,
 			   true /* stdinc */, false /* cxx_stdinc */,
 			   false /* verbose */);
-  if (! cpp_read_main_file (scan_in, in_fname, NULL))
-    exit (FATAL_EXIT_CODE);
 
   cpp_rename_file (scan_in, "<built-in>");
   cpp_init_builtins (scan_in);


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