https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103581
Bug ID: 103581
Summary: [12 Regression] 403.gcc miscompiled since
r12-5708-g70ece2d4ca403dfc6a837d876642378a8d4d3dce
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: marxin at gcc dot gnu.org
CC: rguenth at gcc dot gnu.org
Target Milestone: ---
Since the revision -Ofast -march=znver3 -flto=auto configuration fails:
$ valgrind ./gcc cccp.in
==14547== Memcheck, a memory error detector
==14547== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==14547== Using Valgrind-3.17.0.GIT and LibVEX; rerun with -h for copyright
info
==14547== Command: ./gcc cccp.in
==14547==
==14547== Invalid read of size 4
==14547== at 0x653EC3: UnknownInlinedFun (dominance.c:615)
==14547== by 0x653EC3: UnknownInlinedFun (dominance.c:590)
==14547== by 0x653EC3: ssa_eliminate_dead_code (ssa-dce.c:519)
==14547== by 0x61DEF5: rest_of_compilation (in
/home/marxin/Programming/cpu2006/benchspec/CPU2006/403.gcc/build/wdir/gcc)
==14547== by 0x40D887: c_expand_body.part.0 (in
/home/marxin/Programming/cpu2006/benchspec/CPU2006/403.gcc/build/wdir/gcc)
==14547== by 0x415EFD: finish_function (in
/home/marxin/Programming/cpu2006/benchspec/CPU2006/403.gcc/build/wdir/gcc)
==14547== by 0x405FEE: yyparse_1 (in
/home/marxin/Programming/cpu2006/benchspec/CPU2006/403.gcc/build/wdir/gcc)
==14547== by 0x61ED6D: toplev_main (in
/home/marxin/Programming/cpu2006/benchspec/CPU2006/403.gcc/build/wdir/gcc)
==14547== by 0x49A25BF: __libc_start_call_main (libc_start_call_main.h:58)
==14547== by 0x49A267B: __libc_start_main@@GLIBC_2.34 (libc-start.c:409)
==14547== by 0x401BE4: _start (start.S:116)
==14547== by 0x1FFEFFFD57: ???
==14547== by 0x1B: ???
==14547== by 0x1: ???
==14547== Address 0x58 is not stack'd, malloc'd or (recently) free'd
LTO is needed for 2 object files that cause the segfault:
dominance.c ssa-dce.c