public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/103581] New: [12 Regression] 403.gcc miscompiled since r12-5708-g70ece2d4ca403dfc6a837d876642378a8d4d3dce
@ 2021-12-06 11:51 marxin at gcc dot gnu.org
  2021-12-06 11:52 ` [Bug tree-optimization/103581] " marxin at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-12-06 11:51 UTC (permalink / raw)
  To: gcc-bugs

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-12-06 15:17 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-06 11:51 [Bug tree-optimization/103581] New: [12 Regression] 403.gcc miscompiled since r12-5708-g70ece2d4ca403dfc6a837d876642378a8d4d3dce marxin at gcc dot gnu.org
2021-12-06 11:52 ` [Bug tree-optimization/103581] " marxin at gcc dot gnu.org
2021-12-06 11:53 ` marxin at gcc dot gnu.org
2021-12-06 13:07 ` rguenth at gcc dot gnu.org
2021-12-06 13:40 ` rguenth at gcc dot gnu.org
2021-12-06 14:18 ` rguenth at gcc dot gnu.org
2021-12-06 15:17 ` cvs-commit at gcc dot gnu.org
2021-12-06 15:17 ` rguenth at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).