[vta/trunk?] introduce bootstrap4-debug

Alexandre Oliva aoliva@redhat.com
Mon Nov 5 08:43:00 GMT 2007


I've used bootstrap4-debug, introduced in the patch below, along with
the just-posted patch that modifies the compare target so as to apply
to all subdirectories, in order to verify the absence of codegen
differences in target libraries compiled with different debugging
options.

Since bootstrap-debug is in the trunk, would it be useful to add this
as well?

The extensive mechanical changes to Makefile.in are omitted from the
patch below.

for  ChangeLog .vta?
from  Alexandre Oliva  <aoliva@redhat.com>

	* Makefile.def: Add stage b4g after b3g2.
	* Makefile.tpl (do-compare3-debug): Define.
	* Makefile.in: Rebuilt.

Index: Makefile.def
===================================================================
--- Makefile.def.orig	2007-10-30 02:32:07.000000000 -0200
+++ Makefile.def	2007-10-30 02:34:25.000000000 -0200
@@ -543,6 +543,12 @@ bootstrap_stage = {
 	stage_configure_flags="@stage2_werror_flag@" ;
 	stage_cflags="$(STAGE4_CFLAGS)" ; };
 bootstrap_stage = {
+	id=b4g ; prev=b3g2 ; lean=2 ;
+	compare_target=compare3-debug ;
+	bootstrap_target=bootstrap4-debug ;
+	stage_configure_flags="@stage2_werror_flag@" ;
+	stage_cflags="$(STAGE4_CFLAGS) -g2" ; };
+bootstrap_stage = {
 	id=profile ; prev=1 ;
 	stage_configure_flags="@stage2_werror_flag@" ;
 	stage_cflags='$(STAGE2_CFLAGS) -fprofile-generate' ; };
Index: Makefile.tpl
===================================================================
--- Makefile.tpl.orig	2007-10-30 02:32:07.000000000 -0200
+++ Makefile.tpl	2007-10-30 02:34:25.000000000 -0200
@@ -341,6 +341,7 @@ STAGE4_CFLAGS=$(BOOT_CFLAGS)
 do-compare = @do_compare@
 do-compare3 = $(do-compare)
 do-compare-debug = $(SHELL) $(srcdir)/contrib/compare-debug $$f1 $$f2
+do-compare3-debug = $(do-compare-debug)
 
 # -----------------------------------------------
 # Programs producing files for the TARGET machine


-- 
Alexandre Oliva         http://www.lsd.ic.unicamp.br/~oliva/
FSF Latin America Board Member         http://www.fsfla.org/
Red Hat Compiler Engineer   aoliva@{redhat.com, gcc.gnu.org}
Free Software Evangelist  oliva@{lsd.ic.unicamp.br, gnu.org}



More information about the Gcc-patches mailing list