https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100304
--- Comment #2 from Zdenek Sojka ---
(In reply to Jakub Jelinek from comment #1)
> Can't reproduce this one.
Thank you for checking this. I've updated the sources, and rebuilt with release
checking, no bootstrap:
$ x86_64-pc-linux-gnu-gcc -v
Using built-in specs.
COLLECT_GCC=/repo/gcc-trunk/binary-latest-amd64/bin/x86_64-pc-linux-gnu-gcc
COLLECT_LTO_WRAPPER=/repo/gcc-trunk/binary-trunk-r12-212-20210428120349-gf7ee6a1e8ac-checking-release-nobootstrap-amd64/bin/../libexec/gcc/x86_64-pc-linux-gnu/12.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /repo/gcc-trunk//configure --enable-languages=c,c++
--enable-valgrind-annotations --disable-nls --enable-checking=release
--disable-bootstrap --with-cloog --with-ppl --with-isl
--build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu
--target=x86_64-pc-linux-gnu --with-ld=/usr/bin/x86_64-pc-linux-gnu-ld
--with-as=/usr/bin/x86_64-pc-linux-gnu-as --disable-libstdcxx-pch
--prefix=/repo/gcc-trunk//binary-trunk-r12-212-20210428120349-gf7ee6a1e8ac-checking-release-nobootstrap-amd64
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 12.0.0 20210428 (experimental) (GCC)
Valgrind doesn't report any issues during compilation.
The diff is:
$ diff -u a-testcase.C.gkd a-testcase.gk.C.gkd
--- a-testcase.C.gkd2021-04-28 13:08:24.0 +0200
+++ a-testcase.gk.C.gkd 2021-04-28 13:08:40.0 +0200
@@ -526,10 +526,13 @@
(nil
(expr_list:DI (use (reg:DI 5 di))
(nil)))
-(insn # 0 0 18 (set (reg/f:DI 5 di [orig:89 __first$_M_current ] [89])
-(plus:DI (reg/f:DI 3 bx [orig:86 _9 ] [86])
-(const_int 24 [0x18])))# {*leadi}
- (nil))
+(insn # 0 0 18 (parallel [
+(set (reg/f:DI 5 di [orig:89 __first$_M_current ] [89])
+(const_int 0 [0]))
+(clobber (reg:CC 17 flags))
+]) "testcase.C":82:3# {*movdi_xor}
+ (expr_list:REG_UNUSED (reg:CC 17 flags)
+(nil)))
(call_insn:TI # 0 0 18 (call (mem:QI (symbol_ref:DI
("_ZN12_Vector_baseI9allocatorIiEED2Ev") [flags 0x41] ) [ __dt_base S1 A8])
(const_int 0 [0])) "testcase.C":82:3# {*call}
(expr_list:REG_DEAD (reg:DI 5 di)