Bug 113524 - FAIL: gcc.dg/torture/pr113026-1.c -O3 -fomit-frame-pointer -funroll-loops -fpeel-loops -ftracer -finline-functions (test for bogus messages, line 10)
Summary: FAIL: gcc.dg/torture/pr113026-1.c -O3 -fomit-frame-pointer -funroll-loops -...
Status: NEW
Alias: None
Product: gcc
Classification: Unclassified
Component: tree-optimization (show other bugs)
Version: 14.0
: P3 normal
Target Milestone: 14.0
Assignee: Not yet assigned to anyone
Keywords: diagnostic, testsuite-fail
Depends on:
Blocks: Wstringop-overflow
  Show dependency treegraph
Reported: 2024-01-20 18:28 UTC by John David Anglin
Modified: 2024-01-26 11:53 UTC (History)
2 users (show)

See Also:
Host: hppa*-*-linux*
Target: hppa*-*-linux*, sparc-sun-solaris2.11, s390x-ibm-linux-gnu, m68k-unknown-linux-gnu, i686-pc-linux-gnu, arm-unknown-linux-gnueabihf-
Build: hppa*-*-linux*
Known to work:
Known to fail:
Last reconfirmed: 2024-01-23 00:00:00


Note You need to log in before you can comment on or make changes to this bug.
Description John David Anglin 2024-01-20 18:28:48 UTC
spawn -ignore SIGHUP /home/dave/gnu/gcc/objdir/gcc/xgcc -B/home/dave/gnu/gcc/obj
dir/gcc/ /home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/torture/pr113026-1.c -fdiag
nostics-plain-output -O3 -fomit-frame-pointer -funroll-loops -fpeel-loops -ftracer -finline-functions -Wall -S -o pr113026-1.s
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/torture/pr113026-1.c: In function 'foo':
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/torture/pr113026-1.c:10:12: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/torture/pr113026-1.c:4:6: note: at offset 16 into destination object 'dst' of size 16
FAIL: gcc.dg/torture/pr113026-1.c   -O3 -fomit-frame-pointer -funroll-loops -fpeel-loops -ftracer -finline-functions   (test for bogus messages, line 10)
PASS: gcc.dg/torture/pr113026-1.c   -O3 -fomit-frame-pointer -funroll-loops -fpeel-loops -ftracer -finline-functions  (test for excess errors)

Only occurs at -O3.
Comment 1 Rainer Orth 2024-01-23 09:34:11 UTC
I also see this on 32-bit Solaris/SPARC.  There are testresult reports for a couple of other targets, too.  This seems to be at -O3 -fomit-frame-pointer only,
not plain -O3.