On Wed, Apr 25, 2018 at 03:52:28PM +0200, Richard Biener wrote: > Forcefully setting STAGE3_[CT]FLAGS doesn't have any effect on > a checking enabled build but it will disrupt profiledbootstrap > on a release build by training with -fchecking. Suggestions > welcome - not sure whether adjusting STAGE3_[CT]FLAGS after > setting STAGEtrain_[CT]FLAGS will have the desired effect of > leaving the latter alone.
You could perhaps replace STAGEtrain_CFLAGS = $(STAGE3_CFLAGS) STAGEtrain_TFLAGS = $(STAGE3_TFLAGS) with STAGEtrain_CFLAGS = $(filter-out -fchecking,$(STAGE3_CFLAGS)) STAGEtrain_TFLAGS = $(filter-out -fchecking,$(STAGE3_TFLAGS)) ? Jakub