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

--enable-coverage goof


Hi,
Mark pointed out a goof with coverage flags defaulting to -O2,
and I noticed the bootstrap compiler would be coveraged too.
Fixed thusly.

	* Makefile.in (stage1_build): Pass empty COVERAGE_FLAGS.
	* configure.in (coverage_flags: Default to nothing.
	* configure: Rebuilt.

nathan
-- 
Dr Nathan Sidwell   ::   http://www.codesourcery.com   ::   CodeSourcery LLC
         'But that's a lie.' - 'Yes it is. What's your point?'
nathan@codesourcery.com : http://www.cs.bris.ac.uk/~nathan/ : nathan@acm.org
Index: configure.in
===================================================================
RCS file: /cvs/gcc/gcc/gcc/configure.in,v
retrieving revision 1.615
retrieving revision 1.616
diff -c -3 -p -r1.615 -r1.616
*** configure.in	8 Aug 2002 09:10:31 -0000	1.615
--- configure.in	9 Aug 2002 08:51:26 -0000	1.616
*************** opt)
*** 273,279 ****
  	AC_MSG_ERROR(unknown coverage setting $enableval)
  	;;
  esac],
! [coverage_flags="-O2"])
  AC_SUBST(coverage_flags)
  
  AC_ARG_WITH(cpp_install_dir,
--- 273,279 ----
  	AC_MSG_ERROR(unknown coverage setting $enableval)
  	;;
  esac],
! [coverage_flags=""])
  AC_SUBST(coverage_flags)
  
  AC_ARG_WITH(cpp_install_dir,
Index: Makefile.in
===================================================================
RCS file: /cvs/gcc/gcc/gcc/Makefile.in,v
retrieving revision 1.928
retrieving revision 1.930
diff -c -3 -p -r1.928 -r1.930
*** Makefile.in	8 Aug 2002 09:10:33 -0000	1.928
--- Makefile.in	9 Aug 2002 08:51:27 -0000	1.930
*************** c-pretty-print.o : c-pretty-print.c c-pr
*** 1241,1247 ****
  	$(C_COMMON_H) $(CONFIG_H) $(SYSTEM_H) real.h
  
  c-opts.o : c-opts.c $(CONFIG_H) $(SYSTEM_H) $(TREE_H) $(C_COMMON_H) \
!         c-pragma.h flags.h toplev.h langhooks.h tree-inline.h diagnostic.h
  
  # A file used by all variants of C and some other languages.
  
--- 1241,1248 ----
  	$(C_COMMON_H) $(CONFIG_H) $(SYSTEM_H) real.h
  
  c-opts.o : c-opts.c $(CONFIG_H) $(SYSTEM_H) $(TREE_H) $(C_COMMON_H) \
!         c-pragma.h flags.h toplev.h langhooks.h tree-inline.h diagnostic.h \
! 	intl.h
  
  # A file used by all variants of C and some other languages.
  
*************** STAGE2_FLAGS_TO_PASS = \
*** 3319,3325 ****
  stage1_build:
  	$(MAKE) CC="$(CC)" libdir=$(libdir) LANGUAGES="$(BOOT_LANGUAGES)" \
  		CFLAGS="$(STAGE1_CFLAGS)" MAKEINFO="$(MAKEINFO)" \
! 		MAKEINFOFLAGS="$(MAKEINFOFLAGS)"
  	$(STAMP) stage1_build
  	echo stage1_build > stage_last
  
--- 3320,3326 ----
  stage1_build:
  	$(MAKE) CC="$(CC)" libdir=$(libdir) LANGUAGES="$(BOOT_LANGUAGES)" \
  		CFLAGS="$(STAGE1_CFLAGS)" MAKEINFO="$(MAKEINFO)" \
! 		MAKEINFOFLAGS="$(MAKEINFOFLAGS)" COVERAGE_FLAGS=
  	$(STAMP) stage1_build
  	echo stage1_build > stage_last
  

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