https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119977

--- Comment #4 from Sam James <sjames at gcc dot gnu.org> ---
Created attachment 61224
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61224&action=edit
gimple-match-6.ii.xz (before, r16-151-g996729efbf6d0d)

The patch I applied to get -fchecking=1 to see if it helped was:
```
@@ -552,8 +552,8 @@ STAGE2_CONFIGURE_FLAGS += --with-libphobos-druntime-only
# stage2 and stage3 we are merely avoid doing redundant work, plus we apply
# checking when building all target libraries for release builds.
STAGE1_TFLAGS += -fno-checking
-STAGE2_CFLAGS += -fno-checking
-STAGE2_TFLAGS += -fno-checking
+STAGE2_CFLAGS += -fchecking=1
+STAGE2_TFLAGS += -fchecking=1
STAGE3_CFLAGS += -fchecking=1
STAGE3_TFLAGS += -fchecking=1
```

I dropped that for the bisect & the bits below, ofc.

With the commit before (i.e. r16-151-g996729efbf6d0d) (so, stage3, given it
compared fine):
```
$ /home/sam/build/gcc-before/./gcc/xg++ -B/home/sam/build/gcc-before/./gcc/
-B/home/sam/prefix/gcc-before/x86_64-pc-linux-gnu/bin/ -nostdinc++
-B/home/sam/build/gcc-before/x86_64-pc-linux-gnu/libstdc++-v3/src/.libs
-B/home/sam/build/gcc-before/x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs 
-isystem
/home/sam/build/gcc-before/x86_64-pc-linux-gnu/libstdc++-v3/include/x86_64-pc-linux-gnu
 -isystem /home/sam/build/gcc-before/x86_64-pc-linux-gnu/libstdc++-v3/include 
-isystem /home/sam/git/gcc/libstdc++-v3/libsupc++
-L/home/sam/build/gcc-before/x86_64-pc-linux-gnu/libstdc++-v3/src/.libs
-L/home/sam/build/gcc-before/x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs 
-fno-PIE -c   -O2 -pipe -march=znver4 -ggdb3 -fno-checking -fcf-protection
-flto=jobserver -frandom-seed=1 -DIN_GCC    -fno-exceptions -fno-rtti
-fasynchronous-unwind-tables -W -Wall -Wno-error=narrowing -Wwrite-strings
-Wcast-qual -Wmissing-format-attribute -Wconditionally-supported
-Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros
-Wno-overlength-strings  -DHAVE_CONFIG_H -fno-PIE -I. -I.
-I/home/sam/git/gcc/gcc -I/home/sam/git/gcc/gcc/.
-I/home/sam/git/gcc/gcc/../include  -I/home/sam/git/gcc/gcc/../libcpp/include
-I/home/sam/git/gcc/gcc/../libcody  -I/home/sam/git/gcc/gcc/../libdecnumber
-I/home/sam/git/gcc/gcc/../libdecnumber/bid -I../libdecnumber
-I/home/sam/git/gcc/gcc/../libbacktrace   -o gimple-match-6.o -MT
gimple-match-6.o -MMD -MP -MF ./.deps/gimple-match-6.TPo gimple-match-6.cc
-save-temps
```

With the commit (i.e. r16-152-g4f7b3c24112016) in stage2:
```
$ /home/sam/build/gcc-after/./stage2-gcc/xg++
-B/home/sam/build/gcc-after/./stage2-gcc/
-B/home/sam/prefix/gcc-after/x86_64-pc-linux-gnu/bin/ -nostdinc++
-B/home/sam/build/gcc-after/stage2-x86_64-pc-linux-gnu/libstdc++-v3/src/.libs
-B/home/sam/build/gcc-after/stage2-x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs
 -isystem
/home/sam/build/gcc-after/stage2-x86_64-pc-linux-gnu/libstdc++-v3/include/x86_64-pc-linux-gnu
 -isystem
/home/sam/build/gcc-after/stage2-x86_64-pc-linux-gnu/libstdc++-v3/include 
-isystem /home/sam/git/gcc/libstdc++-v3/libsupc++
-L/home/sam/build/gcc-after/stage2-x86_64-pc-linux-gnu/libstdc++-v3/src/.libs
-L/home/sam/build/gcc-after/stage2-x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs
 -fno-PIE -c   -O2 -pipe -march=znver4 -ggdb3 -fno-checking -fcf-protection
-flto=jobserver -frandom-seed=1 -DIN_GCC    -fno-exceptions -fno-rtti
-fasynchronous-unwind-tables -W -Wall -Wno-error=narrowing -Wwrite-strings
-Wcast-qual -Wmissing-format-attribute -Wconditionally-supported
-Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros
-Wno-overlength-strings  -DHAVE_CONFIG_H -fno-PIE -I. -I.
-I/home/sam/git/gcc/gcc -I/home/sam/git/gcc/gcc/.
-I/home/sam/git/gcc/gcc/../include  -I/home/sam/git/gcc/gcc/../libcpp/include
-I/home/sam/git/gcc/gcc/../libcody  -I/home/sam/git/gcc/gcc/../libdecnumber
-I/home/sam/git/gcc/gcc/../libdecnumber/bid -I../libdecnumber
-I/home/sam/git/gcc/gcc/../libbacktrace   -o gimple-match-6.o -MT
gimple-match-6.o -MMD -MP -MF ./.deps/gimple-match-6.TPo gimple-match-6.cc
```

With the commit (i.e. r16-152-g4f7b3c24112016) in stage3:
```
$ /home/sam/build/gcc-after/./stage3-gcc/xg++
-B/home/sam/build/gcc-after/./stage3-gcc/
-B/home/sam/prefix/gcc-after/x86_64-pc-linux-gnu/bin/ -nostdinc++
-B/home/sam/build/gcc-after/stage3-x86_64-pc-linux-gnu/libstdc++-v3/src/.libs
-B/home/sam/build/gcc-after/stage3-x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs
 -isystem
/home/sam/build/gcc-after/stage3-x86_64-pc-linux-gnu/libstdc++-v3/include/x86_64-pc-linux-gnu
 -isystem
/home/sam/build/gcc-after/stage3-x86_64-pc-linux-gnu/libstdc++-v3/include 
-isystem /home/sam/git/gcc/libstdc++-v3/libsupc++
-L/home/sam/build/gcc-after/stage3-x86_64-pc-linux-gnu/libstdc++-v3/src/.libs
-L/home/sam/build/gcc-after/stage3-x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs
 -fno-PIE -c   -O2 -pipe -march=znver4 -ggdb3 -fchecking=1 -fcf-protection
-flto=jobserver -frandom-seed=1 -DIN_GCC    -fno-exceptions -fno-rtti
-fasynchronous-unwind-tables -W -Wall -Wno-error=narrowing -Wwrite-strings
-Wcast-qual -Wmissing-format-attribute -Wconditionally-supported
-Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros
-Wno-overlength-strings  -DHAVE_CONFIG_H -fno-PIE -I. -I.
-I/home/sam/git/gcc/gcc -I/home/sam/git/gcc/gcc/.
-I/home/sam/git/gcc/gcc/../include  -I/home/sam/git/gcc/gcc/../libcpp/include
-I/home/sam/git/gcc/gcc/../libcody  -I/home/sam/git/gcc/gcc/../libdecnumber
-I/home/sam/git/gcc/gcc/../libdecnumber/bid -I../libdecnumber
-I/home/sam/git/gcc/gcc/../libbacktrace   -o gimple-match-6.o -MT
gimple-match-6.o -MMD -MP -MF ./.deps/gimple-match-6.TPo gimple-match-6.cc
```

Reply via email to