From bece35ca280ed20a8c9bb540881c79fa4bd28cff Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Mon, 30 Apr 2018 08:18:03 +0000 Subject: [PATCH] re PR bootstrap/85571 (non-bootstrap-debug miscompare with trunk) 2018-04-30 Richard Biener PR bootstrap/85571 * Makefile.tpl (STAGE3_CFLAGS): Use -fchecking=1. (STAGE3_TFLAGS): Likewise. (STAGEtrain_CFLAGS): Filter out -fchecking=1. (STAGEtrain_TFLAGS): Likewise. * Makefile.in: Regenerate. * dwarf2out.c (gen_producer_string): Ignore -fchecking[=]. From-SVN: r259755 --- ChangeLog | 9 +++++++++ Makefile.in | 8 ++++---- Makefile.tpl | 8 ++++---- gcc/ChangeLog | 5 +++++ gcc/dwarf2out.c | 2 ++ 5 files changed, 24 insertions(+), 8 deletions(-) diff --git a/ChangeLog b/ChangeLog index 7e74497c5bb..89d5fe57a02 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2018-04-30 Richard Biener + + PR bootstrap/85571 + * Makefile.tpl (STAGE3_CFLAGS): Use -fchecking=1. + (STAGE3_TFLAGS): Likewise. + (STAGEtrain_CFLAGS): Filter out -fchecking=1. + (STAGEtrain_TFLAGS): Likewise. + * Makefile.in: Regenerate. + 2018-04-26 Richard Biener * Makefile.tpl (STAGE1_TFLAGS): Add -fno-checking. diff --git a/Makefile.in b/Makefile.in index 4f5bbf75c98..2bf83b72265 100644 --- a/Makefile.in +++ b/Makefile.in @@ -536,14 +536,14 @@ STAGE1_CONFIGURE_FLAGS = --disable-intermodule $(STAGE1_CHECKING) \ STAGE1_TFLAGS += -fno-checking STAGE2_CFLAGS += -fno-checking STAGE2_TFLAGS += -fno-checking -STAGE3_CFLAGS += -fchecking -STAGE3_TFLAGS += -fchecking +STAGE3_CFLAGS += -fchecking=1 +STAGE3_TFLAGS += -fchecking=1 STAGEprofile_CFLAGS = $(STAGE2_CFLAGS) -fprofile-generate STAGEprofile_TFLAGS = $(STAGE2_TFLAGS) -STAGEtrain_CFLAGS = $(filter-out -fchecking,$(STAGE3_CFLAGS)) -STAGEtrain_TFLAGS = $(filter-out -fchecking,$(STAGE3_TFLAGS)) +STAGEtrain_CFLAGS = $(filter-out -fchecking=1,$(STAGE3_CFLAGS)) +STAGEtrain_TFLAGS = $(filter-out -fchecking=1,$(STAGE3_TFLAGS)) STAGEfeedback_CFLAGS = $(STAGE4_CFLAGS) -fprofile-use STAGEfeedback_TFLAGS = $(STAGE4_TFLAGS) diff --git a/Makefile.tpl b/Makefile.tpl index 5967c7ad631..abd2bc2fb89 100644 --- a/Makefile.tpl +++ b/Makefile.tpl @@ -459,14 +459,14 @@ STAGE1_CONFIGURE_FLAGS = --disable-intermodule $(STAGE1_CHECKING) \ STAGE1_TFLAGS += -fno-checking STAGE2_CFLAGS += -fno-checking STAGE2_TFLAGS += -fno-checking -STAGE3_CFLAGS += -fchecking -STAGE3_TFLAGS += -fchecking +STAGE3_CFLAGS += -fchecking=1 +STAGE3_TFLAGS += -fchecking=1 STAGEprofile_CFLAGS = $(STAGE2_CFLAGS) -fprofile-generate STAGEprofile_TFLAGS = $(STAGE2_TFLAGS) -STAGEtrain_CFLAGS = $(filter-out -fchecking,$(STAGE3_CFLAGS)) -STAGEtrain_TFLAGS = $(filter-out -fchecking,$(STAGE3_TFLAGS)) +STAGEtrain_CFLAGS = $(filter-out -fchecking=1,$(STAGE3_CFLAGS)) +STAGEtrain_TFLAGS = $(filter-out -fchecking=1,$(STAGE3_TFLAGS)) STAGEfeedback_CFLAGS = $(STAGE4_CFLAGS) -fprofile-use STAGEfeedback_TFLAGS = $(STAGE4_TFLAGS) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1470c89f62b..11b7a83e508 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2018-04-30 Richard Biener + + PR bootstrap/85571 + * dwarf2out.c (gen_producer_string): Ignore -fchecking[=]. + 2018-04-30 Richard Biener PR tree-optimization/28364 diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index d2d4ec009e7..a92b0ce0b98 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -24234,6 +24234,8 @@ gen_producer_string (void) case OPT_fmacro_prefix_map_: case OPT_ffile_prefix_map_: case OPT_fcompare_debug: + case OPT_fchecking: + case OPT_fchecking_: /* Ignore these. */ continue; default: -- 2.30.2