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]

Makefile.in: A few more missed BOOT_CFLAGS passes


Following up on my prior patch, this patch now allows BOOT_CFLAGS to be passed down with both make restage{1,2,3,4,profile,feedback} and make bubblestrap.

OK to install?

Since this seems to be an easy thing to miss, what would you think of a followup patch that initially sets

REMAKE=$(MAKE) LANGUAGES="$(LANGUAGES)" BOOT_CFLAGS="$(BOOT_CFLAGS)"

and uses that everywhere?

Kelley Cook
2003-08-27  Kelley Cook  <kelleycook@wideopenwest.com>

	* Makefile.in (restage1): Pass BOOT_CFLAGS to recursive make.
	(restage2): Likewise.
	(restage3): Likewise.
	(restage4): Likewise.
	(restageprofile): Likewise.
	(restagefeedback): Likewise.
	(bubblestrap): Likewise.

*** Makefile.in.orig	Wed Aug 27 09:39:17 2003
--- Makefile.in	Wed Aug 27 09:54:58 2003
*************** restage1: unstage1
*** 3635,3653 ****
  	$(MAKE) stage1_build
  
  restage2: unstage2
! 	$(MAKE) LANGUAGES="$(LANGUAGES)" stage2_build
  
  restage3: unstage3
! 	$(MAKE) LANGUAGES="$(LANGUAGES)" stage3_build
  
  restage4: unstage4
! 	$(MAKE) LANGUAGES="$(LANGUAGES)" stage4_build
  
  restageprofile: unstageprofile
! 	$(MAKE) LANGUAGES="$(LANGUAGES)" stageprofile_build
  
  restagefeedback: unstagefeedback
! 	$(MAKE) LANGUAGES="$(LANGUAGES)" stagefeedback_build
  
  # Bubble up a bugfix through all the stages.  Primarily useful for fixing
  # bugs that cause the compiler to crash while building stage 2.
--- 3635,3653 ----
  	$(MAKE) stage1_build
  
  restage2: unstage2
! 	$(MAKE) LANGUAGES="$(LANGUAGES)" BOOT_CFLAGS="$(BOOT_CFLAGS)" stage2_build
  
  restage3: unstage3
! 	$(MAKE) LANGUAGES="$(LANGUAGES)" BOOT_CFLAGS="$(BOOT_CFLAGS)" stage3_build
  
  restage4: unstage4
! 	$(MAKE) LANGUAGES="$(LANGUAGES)" BOOT_CFLAGS="$(BOOT_CFLAGS)" stage4_build
  
  restageprofile: unstageprofile
! 	$(MAKE) LANGUAGES="$(LANGUAGES)" BOOT_CFLAGS="$(BOOT_CFLAGS)" stageprofile_build
  
  restagefeedback: unstagefeedback
! 	$(MAKE) LANGUAGES="$(LANGUAGES)" BOOT_CFLAGS="$(BOOT_CFLAGS)" stagefeedback_build
  
  # Bubble up a bugfix through all the stages.  Primarily useful for fixing
  # bugs that cause the compiler to crash while building stage 2.
*************** bubblestrap:
*** 3660,3673 ****
  	  fi; \
  	fi
  	if test -f stage1_copy; then $(MAKE) unstage1; fi
! 	$(MAKE) LANGUAGES="$(LANGUAGES)" stage1_copy
  	if test -f stage2_copy; then $(MAKE) unstage2; fi
! 	$(MAKE) LANGUAGES="$(LANGUAGES)" stage2_copy
  	if test -f stage3_copy; then $(MAKE) unstage3; fi
! 	$(MAKE) LANGUAGES="$(LANGUAGES)" stage3_build
  	if test -f stage4_copy; then \
  	  $(MAKE) stage3_copy; $(MAKE) unstage4; \
! 	  $(MAKE) LANGUAGES="$(LANGUAGES)" stage4_build || exit 1; \
  	fi
  
  quickstrap:
--- 3660,3673 ----
  	  fi; \
  	fi
  	if test -f stage1_copy; then $(MAKE) unstage1; fi
! 	$(MAKE) LANGUAGES="$(LANGUAGES)" BOOT_CFLAGS="$(BOOT_CFLAGS)" stage1_copy
  	if test -f stage2_copy; then $(MAKE) unstage2; fi
! 	$(MAKE) LANGUAGES="$(LANGUAGES)" BOOT_CFLAGS="$(BOOT_CFLAGS)" stage2_copy
  	if test -f stage3_copy; then $(MAKE) unstage3; fi
! 	$(MAKE) LANGUAGES="$(LANGUAGES)" BOOT_CFLAGS="$(BOOT_CFLAGS)" stage3_build
  	if test -f stage4_copy; then \
  	  $(MAKE) stage3_copy; $(MAKE) unstage4; \
! 	  $(MAKE) LANGUAGES="$(LANGUAGES)" BOOT_CFLAGS="$(BOOT_CFLAGS)" stage4_build || exit 1; \
  	fi
  
  quickstrap:

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