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.2
Assignee: Not yet assigned to anyone
URL:
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-05-22 08:20 UTC (History)
3 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


Attachments

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.
Comment 2 Richard Biener 2024-05-07 07:44:08 UTC
GCC 14.1 is being released, retargeting bugs to GCC 14.2.
Comment 3 Rainer Orth 2024-05-22 08:20:40 UTC
FWIW, I've now found that on sparc-sun-solaris2.11 (32-bit only) the warning
occurs as far back as gcc 10 with just

gcc -O3 -ftracer

Back in gcc 10, it would happen for both -m32 and -m64, while from gcc 11
onward, it's for -m32 only.