public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug testsuite/102944] New: Many gcc.dg/Wstringop-overflow-*.c failures
@ 2021-10-26 14:00 ro at gcc dot gnu.org
2021-10-26 14:00 ` [Bug testsuite/102944] " ro at gcc dot gnu.org
` (8 more replies)
0 siblings, 9 replies; 10+ messages in thread
From: ro at gcc dot gnu.org @ 2021-10-26 14:00 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102944
Bug ID: 102944
Summary: Many gcc.dg/Wstringop-overflow-*.c failures
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: testsuite
Assignee: unassigned at gcc dot gnu.org
Reporter: ro at gcc dot gnu.org
CC: crazylht at gmail dot com
Target Milestone: ---
Target: sparc-sun-solaris2.11, m68k-unknown-linux-gnu,
moxie-unknown-elf, aarch64-suse-linux-gnu,
mipsel-mti-elf, arm-none-linux-gnueabihf
Between 20211019 (ff0eec94e87dfb7dc387f120ca5ade2707aecf50) and 20211020
(d98626bf451dea6a28a42d953f7d0bd7659ad4d5),
quite a number of testsuite failures occured. I'm seeing them on Solaris/SPARC
(32 and 64-bit), but gcc-testresults show reports for many others:
+FAIL: gcc.dg/Warray-parameter-3.c pr102706 (test for warnings, line 80)
+FAIL: gcc.dg/Wstringop-overflow-14.c pr102706 (test for warnings, line 39)
+XPASS: gcc.dg/Wstringop-overflow-14.c pr102706 (test for warnings, line 40)
+FAIL: gcc.dg/Wstringop-overflow-68.c pr101475 (test for warnings, line 68)
+FAIL: gcc.dg/Wstringop-overflow-68.c pr101475 (test for warnings, line 69)
+XPASS: gcc.dg/Wstringop-overflow-68.c pr101475 (test for warnings, line 70)
+XPASS: gcc.dg/Wstringop-overflow-68.c pr101475 (test for warnings, line 71)
+XPASS: gcc.dg/Wstringop-overflow-68.c pr101475 (test for warnings, line 72)
+XPASS: gcc.dg/Wstringop-overflow-76.c note (test for warnings, line 107)
+XPASS: gcc.dg/Wstringop-overflow-76.c note (test for warnings, line 86)
+XPASS: gcc.dg/Wstringop-overflow-76.c pr102697 (test for warnings, line 119)
+XPASS: gcc.dg/Wstringop-overflow-76.c pr102697 (test for warnings, line 99)
+FAIL: gcc.dg/Wstringop-overflow-76.c pr102706 (test for warnings, line 30)
+XPASS: gcc.dg/Wstringop-overflow-76.c pr102706 (test for warnings, line 33)
+FAIL: gcc.dg/Wstringop-overflow-76.c pr102706 (test for warnings, line 47)
+XPASS: gcc.dg/Wstringop-overflow-76.c pr102706 (test for warnings, line 50)
AFAICS they are due to
commit 3c8d8c0be95e99dc0cba7f6fad2429243582119f
Author: liuhongt <hongtao.liu@intel.com>
Date: Thu Oct 14 09:31:03 2021 +0800
Adjust testcase for O2 vectorization.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug testsuite/102944] Many gcc.dg/Wstringop-overflow-*.c failures
2021-10-26 14:00 [Bug testsuite/102944] New: Many gcc.dg/Wstringop-overflow-*.c failures ro at gcc dot gnu.org
@ 2021-10-26 14:00 ` ro at gcc dot gnu.org
2021-10-28 1:19 ` crazylht at gmail dot com
` (7 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: ro at gcc dot gnu.org @ 2021-10-26 14:00 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102944
Rainer Orth <ro at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |12.0
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug testsuite/102944] Many gcc.dg/Wstringop-overflow-*.c failures
2021-10-26 14:00 [Bug testsuite/102944] New: Many gcc.dg/Wstringop-overflow-*.c failures ro at gcc dot gnu.org
2021-10-26 14:00 ` [Bug testsuite/102944] " ro at gcc dot gnu.org
@ 2021-10-28 1:19 ` crazylht at gmail dot com
2021-11-02 8:41 ` cvs-commit at gcc dot gnu.org
` (6 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: crazylht at gmail dot com @ 2021-10-28 1:19 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102944
--- Comment #1 from Hongtao.liu <crazylht at gmail dot com> ---
Mine.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug testsuite/102944] Many gcc.dg/Wstringop-overflow-*.c failures
2021-10-26 14:00 [Bug testsuite/102944] New: Many gcc.dg/Wstringop-overflow-*.c failures ro at gcc dot gnu.org
2021-10-26 14:00 ` [Bug testsuite/102944] " ro at gcc dot gnu.org
2021-10-28 1:19 ` crazylht at gmail dot com
@ 2021-11-02 8:41 ` cvs-commit at gcc dot gnu.org
2021-11-03 13:14 ` ro at CeBiTec dot Uni-Bielefeld.DE
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-11-02 8:41 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102944
--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by hongtao Liu <liuhongt@gcc.gnu.org>:
https://gcc.gnu.org/g:2e560abff4294639a0fcf666994c30fb2f00a324
commit r12-4839-g2e560abff4294639a0fcf666994c30fb2f00a324
Author: liuhongt <hongtao.liu@intel.com>
Date: Thu Oct 28 14:28:29 2021 +0800
Adjust testcase for O2 vect.
Adjust code in check_vect_slp_store_usage to make it an exact
pattern match of the corresponding testcases.
These new target/xfail selectors are added as a temporary solution,
and should be removed after real issue is fixed for Wstringop-overflow.
gcc/ChangeLog:
* doc/sourcebuild.texi (vect_slp_v4qi_store_unalign,
vect_slp_v2hi_store_unalign, vect_slp_v4hi_store_unalign,
vect_slp_v4si_store_unalign): Document efficient target.
(vect_slp_v4qi_store_unalign_1, vect_slp_v8qi_store_unalign_1,
vect_slp_v16qi_store_unalign_1): Ditto.
(vect_slp_v2hi_store_align,vect_slp_v2qi_store_align,
vect_slp_v2si_store_align, vect_slp_v4qi_store_align): Ditto.
(struct_4char_block_move, struct_8char_block_move,
struct_16char_block_move): Ditto.
gcc/testsuite/ChangeLog:
PR testsuite/102944
* c-c++-common/Wstringop-overflow-2.c: Adjust target/xfail
selector.
* gcc.dg/Warray-bounds-48.c: Ditto.
* gcc.dg/Warray-bounds-51.c: Ditto.
* gcc.dg/Warray-parameter-3.c: Ditto.
* gcc.dg/Wstringop-overflow-14.c: Ditto.
* gcc.dg/Wstringop-overflow-21.c: Ditto.
* gcc.dg/Wstringop-overflow-68.c: Ditto
* gcc.dg/Wstringop-overflow-76.c: Ditto
* gcc.dg/Wzero-length-array-bounds-2.c: Ditto.
* lib/target-supports.exp (vect_slp_v4qi_store_unalign): New
efficient target.
(vect_slp_v4qi_store_unalign_1): Ditto.
(struct_4char_block_move): Ditto.
(struct_8char_block_move): Ditto.
(stryct_16char_block_move): Ditto.
(vect_slp_v2hi_store_align): Ditto.
(vect_slp_v2qi_store): Rename to ..
(vect_slp_v2qi_store_align): .. this.
(vect_slp_v4qi_store): Rename to ..
(vect_slp_v4qi_store_align): .. This.
(vect_slp_v8qi_store): Rename to ..
(vect_slp_v8qi_store_unalign_1): .. This.
(vect_slp_v16qi_store): Rename to ..
(vect_slp_v16qi_store_unalign_1): .. This.
(vect_slp_v2hi_store): Rename to ..
(vect_slp_v2hi_store_unalign): .. This.
(vect_slp_v4hi_store): Rename to ..
(vect_slp_v4hi_store_unalign): This.
(vect_slp_v2si_store): Rename to ..
(vect_slp_v2si_store_align): .. This.
(vect_slp_v4si_store): Rename to ..
(vect_slp_v4si_store_unalign): Ditto.
(check_vect_slp_aligned_store_usage): Rename to ..
(check_vect_slp_store_usage): .. this and adjust code to make
it an exact pattern match of corresponding testcase.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug testsuite/102944] Many gcc.dg/Wstringop-overflow-*.c failures
2021-10-26 14:00 [Bug testsuite/102944] New: Many gcc.dg/Wstringop-overflow-*.c failures ro at gcc dot gnu.org
` (2 preceding siblings ...)
2021-11-02 8:41 ` cvs-commit at gcc dot gnu.org
@ 2021-11-03 13:14 ` ro at CeBiTec dot Uni-Bielefeld.DE
2021-11-04 5:31 ` crazylht at gmail dot com
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: ro at CeBiTec dot Uni-Bielefeld.DE @ 2021-11-03 13:14 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102944
--- Comment #3 from ro at CeBiTec dot Uni-Bielefeld.DE <ro at CeBiTec dot Uni-Bielefeld.DE> ---
> --- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
> The master branch has been updated by hongtao Liu <liuhongt@gcc.gnu.org>:
>
> https://gcc.gnu.org/g:2e560abff4294639a0fcf666994c30fb2f00a324
>
> commit r12-4839-g2e560abff4294639a0fcf666994c30fb2f00a324
> Author: liuhongt <hongtao.liu@intel.com>
> Date: Thu Oct 28 14:28:29 2021 +0800
>
> Adjust testcase for O2 vect.
This patch seems to have caused
+FAIL: gcc.dg/Warray-bounds-48.c pr102706 (test for warnings, line 133)
+FAIL: gcc.dg/Warray-bounds-48.c pr102706 (test for warnings, line 33)
I'm seeing it on 64-bit sparc, and there are also reports for
s390x-ibm-linux-gnu and m68k-unknown-linux-gnu. It may be a
coincidance, but those are all big-endian targets.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug testsuite/102944] Many gcc.dg/Wstringop-overflow-*.c failures
2021-10-26 14:00 [Bug testsuite/102944] New: Many gcc.dg/Wstringop-overflow-*.c failures ro at gcc dot gnu.org
` (3 preceding siblings ...)
2021-11-03 13:14 ` ro at CeBiTec dot Uni-Bielefeld.DE
@ 2021-11-04 5:31 ` crazylht at gmail dot com
2021-12-16 16:28 ` msebor at gcc dot gnu.org
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: crazylht at gmail dot com @ 2021-11-04 5:31 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102944
--- Comment #4 from Hongtao.liu <crazylht at gmail dot com> ---
> I'm seeing it on 64-bit sparc, and there are also reports for
> s390x-ibm-linux-gnu and m68k-unknown-linux-gnu. It may be a
> coincidance, but those are all big-endian targets.
There seems to be a miss optimization issue, open pr103076 to track that.
If the miss optimization isssue is fixed in vectorizer, those testcase would
pass, if not, i'll adjust my patch.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug testsuite/102944] Many gcc.dg/Wstringop-overflow-*.c failures
2021-10-26 14:00 [Bug testsuite/102944] New: Many gcc.dg/Wstringop-overflow-*.c failures ro at gcc dot gnu.org
` (4 preceding siblings ...)
2021-11-04 5:31 ` crazylht at gmail dot com
@ 2021-12-16 16:28 ` msebor at gcc dot gnu.org
2021-12-17 1:24 ` crazylht at gmail dot com
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: msebor at gcc dot gnu.org @ 2021-12-16 16:28 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102944
Martin Sebor <msebor at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
CC| |msebor at gcc dot gnu.org
Last reconfirmed| |2021-12-16
Status|UNCONFIRMED |WAITING
--- Comment #5 from Martin Sebor <msebor at gcc dot gnu.org> ---
I don't see any of the FAILs or XFAILs listed in comment #0 with cross
compilers for any of the Targets. Can this report be resolved?
I do see some unexpected failures with an m68k-unknown-linux-gnu cross in other
tests. I opened pr103751 for those.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug testsuite/102944] Many gcc.dg/Wstringop-overflow-*.c failures
2021-10-26 14:00 [Bug testsuite/102944] New: Many gcc.dg/Wstringop-overflow-*.c failures ro at gcc dot gnu.org
` (5 preceding siblings ...)
2021-12-16 16:28 ` msebor at gcc dot gnu.org
@ 2021-12-17 1:24 ` crazylht at gmail dot com
2021-12-17 12:47 ` ro at CeBiTec dot Uni-Bielefeld.DE
2021-12-17 15:26 ` msebor at gcc dot gnu.org
8 siblings, 0 replies; 10+ messages in thread
From: crazylht at gmail dot com @ 2021-12-17 1:24 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102944
--- Comment #6 from Hongtao.liu <crazylht at gmail dot com> ---
(In reply to Martin Sebor from comment #5)
> I don't see any of the FAILs or XFAILs listed in comment #0 with cross
> compilers for any of the Targets. Can this report be resolved?
I thinks so, now we only have
+FAIL: gcc.dg/Warray-bounds-48.c pr102706 (test for warnings, line 133)
+FAIL: gcc.dg/Warray-bounds-48.c pr102706 (test for warnings, line 33)
on sparc, s390x-ibm-linux-gnu and m68k-unknown-linux-gnu, and i've opened PR
for that.
>
> I do see some unexpected failures with an m68k-unknown-linux-gnu cross in
> other tests. I opened pr103751 for those.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug testsuite/102944] Many gcc.dg/Wstringop-overflow-*.c failures
2021-10-26 14:00 [Bug testsuite/102944] New: Many gcc.dg/Wstringop-overflow-*.c failures ro at gcc dot gnu.org
` (6 preceding siblings ...)
2021-12-17 1:24 ` crazylht at gmail dot com
@ 2021-12-17 12:47 ` ro at CeBiTec dot Uni-Bielefeld.DE
2021-12-17 15:26 ` msebor at gcc dot gnu.org
8 siblings, 0 replies; 10+ messages in thread
From: ro at CeBiTec dot Uni-Bielefeld.DE @ 2021-12-17 12:47 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102944
--- Comment #7 from ro at CeBiTec dot Uni-Bielefeld.DE <ro at CeBiTec dot Uni-Bielefeld.DE> ---
> --- Comment #5 from Martin Sebor <msebor at gcc dot gnu.org> ---
> I don't see any of the FAILs or XFAILs listed in comment #0 with cross
> compilers for any of the Targets. Can this report be resolved?
The failures last occured on sparc*-sun-solaris2.11 on 20211101 and on
i386-pc-solaris2.11 on 20210716, so for my targets the issue is fixed
indeed.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug testsuite/102944] Many gcc.dg/Wstringop-overflow-*.c failures
2021-10-26 14:00 [Bug testsuite/102944] New: Many gcc.dg/Wstringop-overflow-*.c failures ro at gcc dot gnu.org
` (7 preceding siblings ...)
2021-12-17 12:47 ` ro at CeBiTec dot Uni-Bielefeld.DE
@ 2021-12-17 15:26 ` msebor at gcc dot gnu.org
8 siblings, 0 replies; 10+ messages in thread
From: msebor at gcc dot gnu.org @ 2021-12-17 15:26 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102944
Martin Sebor <msebor at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |RESOLVED
Resolution|--- |FIXED
--- Comment #8 from Martin Sebor <msebor at gcc dot gnu.org> ---
Thanks. Resolving as fixed then.
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2021-12-17 15:26 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-26 14:00 [Bug testsuite/102944] New: Many gcc.dg/Wstringop-overflow-*.c failures ro at gcc dot gnu.org
2021-10-26 14:00 ` [Bug testsuite/102944] " ro at gcc dot gnu.org
2021-10-28 1:19 ` crazylht at gmail dot com
2021-11-02 8:41 ` cvs-commit at gcc dot gnu.org
2021-11-03 13:14 ` ro at CeBiTec dot Uni-Bielefeld.DE
2021-11-04 5:31 ` crazylht at gmail dot com
2021-12-16 16:28 ` msebor at gcc dot gnu.org
2021-12-17 1:24 ` crazylht at gmail dot com
2021-12-17 12:47 ` ro at CeBiTec dot Uni-Bielefeld.DE
2021-12-17 15:26 ` msebor 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).