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]
Other format: [Raw text]

[Bug bootstrap/36907] [4.4 Regression]: Gcc failed to bootstrap



------- Comment #6 from gnu at the-meissners dot org  2008-07-23 15:22 -------
Subject: Re:  [4.4 Regression]: Gcc failed to bootstrap

On Wed, Jul 23, 2008 at 01:46:30PM -0000, hjl dot tools at gmail dot com wrote:
> 
> 
> ------- Comment #4 from hjl dot tools at gmail dot com  2008-07-23 13:46 -------
> (In reply to comment #3)
> > The problem on Fedora 9/x86-64 may be due to FILE is undeclared in
> > 
> > extern void cl_optimization_print (FILE *, int, struct cl_optimization *);
> > extern void cl_target_option_print (FILE *, int, struct cl_target_option *);
> > 
> > in options.h.
> > 
> 
> It happens when building libobjc.

I didn't have objective c, java, or ADA on the system.  I'm going to kick off a
build shortly with the following patch to see if it allows objc to build:

Index: gcc/optc-gen.awk
===================================================================
--- gcc/optc-gen.awk    (revision 138086)
+++ gcc/optc-gen.awk    (working copy)
@@ -225,7 +225,7 @@ for (i = 0; i < n_opts; i++) {
 print "};"

 print "";
-print "#if !defined(GCC_DRIVER) && !defined(IN_LIBGCC2)"
+print "#if !defined(GCC_DRIVER) && !defined(IN_LIBGCC2) &&
!defined(IN_TARGET_LIBS)"
 print "";
 print "/* Save optimization variables into a structure.  */"
 print "void";
Index: gcc/opth-gen.awk
===================================================================
--- gcc/opth-gen.awk    (revision 138086)
+++ gcc/opth-gen.awk    (working copy)
@@ -95,7 +95,7 @@ print ""
 # Also, order the structure so that pointer fields occur first, then int
 # fields, and then char fields to provide the best packing.

-print "#if !defined(GCC_DRIVER) && !defined(IN_LIBGCC2)"
+print "#if !defined(GCC_DRIVER) && !defined(IN_LIBGCC2) &&
!defined(IN_TARGET_LIBS)"
 print ""
 print "/* Structure to save/restore optimization and target specific options. 
*/";
 print "struct cl_optimization GTY(())";


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36907


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