On 25 April 2018 16:11:23 CEST, Richard Biener <rguent...@suse.de> wrote: >On Wed, 25 Apr 2018, Jakub Jelinek wrote: > >> 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)) >> ? > >Good idea - I'll check if that works.
Is filter-out guaranteed to be supported on anything other than GNU make?