This is the mail archive of the gcc@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]

Trouble with --enable-coverage bootstraps


Hi,

I need this patch to make bootstraps with --enable-coverage work for me.  
Without this, the bootstrap fails because $(objdir)/gcc/include/syslimits.h 
is missing after stage0.  Apparently it requires fixed headers.  Dunno if 
this patch is correct though ;-)

Gr.
Steven

Index: configure.in
===================================================================
RCS file: /cvs/gcc/gcc/gcc/configure.in,v
retrieving revision 1.763
diff -c -3 -p -r1.763 configure.in
*** configure.in	22 Dec 2003 07:42:37 -0000	1.763
--- configure.in	29 Dec 2003 09:28:48 -0000
*************** AC_SUBST(inhibit_libc)
*** 1480,1491 ****
  # Also, we cannot run fixincludes or fix-header.
  
  # These are the normal (build=host) settings:
! BUILD_PREFIX=			AC_SUBST(BUILD_PREFIX)
! BUILD_PREFIX_1=ignore-		AC_SUBST(BUILD_PREFIX_1)
! CC_FOR_BUILD='$(CC)'		AC_SUBST(CC_FOR_BUILD)
! BUILD_CFLAGS='$(ALL_CFLAGS)'	AC_SUBST(BUILD_CFLAGS)
! 
! STMP_FIXINC=stmp-fixinc		AC_SUBST(STMP_FIXINC)
  
  # Possibly disable fixproto, on a per-target basis.
  case ${use_fixproto} in
--- 1480,1490 ----
  # Also, we cannot run fixincludes or fix-header.
  
  # These are the normal (build=host) settings:
! BUILD_PREFIX=
! BUILD_PREFIX_1=ignore-
! CC_FOR_BUILD='$(CC)'
! BUILD_CFLAGS='$(ALL_CFLAGS)'
! STMP_FIXINC=stmp-fixinc
  
  # Possibly disable fixproto, on a per-target basis.
  case ${use_fixproto} in
*************** case ${use_fixproto} in
*** 1496,1502 ****
      STMP_FIXPROTO=stmp-fixproto
      ;;
  esac
- AC_SUBST(STMP_FIXPROTO)
  
  # And these apply if build != host, or we are generating coverage data
  if test x$build != x$host || test "x$coverage_flags" != x
--- 1495,1500 ----
*************** then
*** 1504,1516 ****
      BUILD_PREFIX=build-
      BUILD_PREFIX_1=build-
      BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
  
!     if test "x$TARGET_SYSTEM_ROOT" = x; then
! 	STMP_FIXINC=
! 	STMP_FIXPROTO=
!     fi
  fi
  
  # Expand extra_headers to include complete path.
  # This substitutes for lots of t-* files.
  extra_headers_list=
--- 1502,1521 ----
      BUILD_PREFIX=build-
      BUILD_PREFIX_1=build-
      BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
+ fi
  
! if test x$build != x$host && test "x$TARGET_SYSTEM_ROOT" = x; then
!     STMP_FIXINC=
!     STMP_FIXPROTO=
  fi
  
+ AC_SUBST(BUILD_PREFIX)
+ AC_SUBST(BUILD_PREFIX_1)
+ AC_SUBST(CC_FOR_BUILD)
+ AC_SUBST(BUILD_CFLAGS)
+ AC_SUBST(STMP_FIXINC)
+ AC_SUBST(STMP_FIXPROTO)
+ 
  # Expand extra_headers to include complete path.
  # This substitutes for lots of t-* files.
  extra_headers_list=


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