This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Solaris 8/SPARC libgcj bootstrap broken by recent fix-header change
Rainer Orth wrote:-
> (cpp_init_builtins): New.
> * fix-header.c (read_scan_file): Update to handle -D. Fix
> handling of -I. Replace call to cpp_finish_options.
>
> Before this patch, fix-header is only applied to curses.h, afterwards also
> signal.h, stdlib.h, and time.h are `fixed', breaking bootstrap as
> described.
Does it work if fix-header doesn't pass any -I options? As I mention
in the log above, they were being passed on the command line and
ignored. I "fixed" that with my patch. It's the only thing I can see
of any relevance.
Does this patch fix it? If not, I'd appreciate if you could investigate
exactly why it is fixing more than before - the decisions about what to
fix aren't directly affected by my patch, and I don't have a system
that even uses fix-header.
Neil.
Index: fixproto
===================================================================
RCS file: /cvs/gcc/gcc/gcc/fixproto,v
retrieving revision 1.14
diff -u -p -r1.14 fixproto
--- fixproto 22 Mar 2003 00:15:53 -0000 1.14
+++ fixproto 31 Mar 2003 19:38:57 -0000
@@ -130,7 +130,7 @@ if [ `echo $* | wc -w` != 0 ] ; then
abs_source_dir=$original_dir/$rel_source_dir
;;
esac
- include_path="$include_path -I$abs_source_dir"
+# include_path="$include_path -I$abs_source_dir"
done
fi