public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug testsuite/114642] New: new test case gcc.dg/debug/btf/btf-datasec-3.c from r14-6195-gb8cf266f4ca4ff fails for 32 bits @ 2024-04-08 15:38 seurer at gcc dot gnu.org 2024-04-09 0:04 ` [Bug testsuite/114642] " pinskia at gcc dot gnu.org ` (3 more replies) 0 siblings, 4 replies; 5+ messages in thread From: seurer at gcc dot gnu.org @ 2024-04-08 15:38 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114642 Bug ID: 114642 Summary: new test case gcc.dg/debug/btf/btf-datasec-3.c from r14-6195-gb8cf266f4ca4ff fails for 32 bits Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: testsuite Assignee: unassigned at gcc dot gnu.org Reporter: seurer at gcc dot gnu.org Target Milestone: --- g:b8cf266f4ca4ff89704b190c827abf9ea7e7b5bf, r14-6195-gb8cf266f4ca4ff I only see this failing on 32 bit. make -k check-gcc RUNTESTFLAGS="--target_board=unix'{-m32}' btf.exp=gcc.dg/debug/btf/btf-datasec-3.c" FAIL: gcc.dg/debug/btf/btf-datasec-3.c scan-assembler-times bts_type 3 FAIL: gcc.dg/debug/btf/btf-datasec-3.c scan-assembler-times bts_type: \\(BTF_KIND_VAR 'test_data2'\\) 1 FAIL: gcc.dg/debug/btf/btf-datasec-3.c scan-assembler-times bts_type: \\(BTF_KIND_VAR 'test_bss2'\\) 1 # of expected passes 2 # of unexpected failures 3 Author: David Faust <david.faust@oracle.com> Date: Mon Dec 4 14:08:03 2023 -0800 btf: avoid wrong DATASEC entries for extern vars [PR112849] * gcc.dg/debug/btf/btf-datasec-3.c: New test. ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug testsuite/114642] new test case gcc.dg/debug/btf/btf-datasec-3.c from r14-6195-gb8cf266f4ca4ff fails for 32 bits 2024-04-08 15:38 [Bug testsuite/114642] New: new test case gcc.dg/debug/btf/btf-datasec-3.c from r14-6195-gb8cf266f4ca4ff fails for 32 bits seurer at gcc dot gnu.org @ 2024-04-09 0:04 ` pinskia at gcc dot gnu.org 2024-04-09 1:58 ` linkw at gcc dot gnu.org ` (2 subsequent siblings) 3 siblings, 0 replies; 5+ messages in thread From: pinskia at gcc dot gnu.org @ 2024-04-09 0:04 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114642 Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Target|powerpc64-linux-gnu |powerpc-linux-gnu mips*-*-* | |riscv*-*-* See Also| |https://gcc.gnu.org/bugzill | |a/show_bug.cgi?id=112849 Keywords| |testsuite-fail Ever confirmed|0 |1 Status|UNCONFIRMED |NEW Last reconfirmed| |2024-04-09 --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Confirmed. This does seem like a testsuite issue. With `-G0` (which disables small data opt) the testcases passes. So I suspect this will also fail on mips*-*-* too. It also fails for riscv*-*-* (where the option to disable small data is -msmall-data-limit=0). ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug testsuite/114642] new test case gcc.dg/debug/btf/btf-datasec-3.c from r14-6195-gb8cf266f4ca4ff fails for 32 bits 2024-04-08 15:38 [Bug testsuite/114642] New: new test case gcc.dg/debug/btf/btf-datasec-3.c from r14-6195-gb8cf266f4ca4ff fails for 32 bits seurer at gcc dot gnu.org 2024-04-09 0:04 ` [Bug testsuite/114642] " pinskia at gcc dot gnu.org @ 2024-04-09 1:58 ` linkw at gcc dot gnu.org 2024-04-09 2:03 ` pinskia at gcc dot gnu.org 2024-04-09 18:12 ` cvs-commit at gcc dot gnu.org 3 siblings, 0 replies; 5+ messages in thread From: linkw at gcc dot gnu.org @ 2024-04-09 1:58 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114642 Kewen Lin <linkw at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- URL| |https://gcc.gnu.org/piperma | |il/gcc-patches/2024-April/6 | |48994.html CC| |linkw at gcc dot gnu.org Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |david.faust at oracle dot com --- Comment #2 from Kewen Lin <linkw at gcc dot gnu.org> --- David posted a fix (see URL). ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug testsuite/114642] new test case gcc.dg/debug/btf/btf-datasec-3.c from r14-6195-gb8cf266f4ca4ff fails for 32 bits 2024-04-08 15:38 [Bug testsuite/114642] New: new test case gcc.dg/debug/btf/btf-datasec-3.c from r14-6195-gb8cf266f4ca4ff fails for 32 bits seurer at gcc dot gnu.org 2024-04-09 0:04 ` [Bug testsuite/114642] " pinskia at gcc dot gnu.org 2024-04-09 1:58 ` linkw at gcc dot gnu.org @ 2024-04-09 2:03 ` pinskia at gcc dot gnu.org 2024-04-09 18:12 ` cvs-commit at gcc dot gnu.org 3 siblings, 0 replies; 5+ messages in thread From: pinskia at gcc dot gnu.org @ 2024-04-09 2:03 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114642 --- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Kewen Lin from comment #2) > David posted a fix (see URL). Oh yes that should fix it for MIPS and RISCV too. ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug testsuite/114642] new test case gcc.dg/debug/btf/btf-datasec-3.c from r14-6195-gb8cf266f4ca4ff fails for 32 bits 2024-04-08 15:38 [Bug testsuite/114642] New: new test case gcc.dg/debug/btf/btf-datasec-3.c from r14-6195-gb8cf266f4ca4ff fails for 32 bits seurer at gcc dot gnu.org ` (2 preceding siblings ...) 2024-04-09 2:03 ` pinskia at gcc dot gnu.org @ 2024-04-09 18:12 ` cvs-commit at gcc dot gnu.org 3 siblings, 0 replies; 5+ messages in thread From: cvs-commit at gcc dot gnu.org @ 2024-04-09 18:12 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114642 --- Comment #4 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by David Faust <dfaust@gcc.gnu.org>: https://gcc.gnu.org/g:639215c5eb6c56ba3830cd868d1d3ddd700b4c90 commit r14-9878-g639215c5eb6c56ba3830cd868d1d3ddd700b4c90 Author: David Faust <david.faust@oracle.com> Date: Mon Apr 8 13:33:48 2024 -0700 btf: improve btf-datasec-3.c test [PR114642] This test failed on powerpc --target_board=unix'{-m32}' because two variables were not placed in sections where the test silently (and incorrectly) assumed they would be. The important thing for the test is only that BTF_KIND_DATASEC entries are NOT generated for the extern variable declarations without an explicit section attribute. Make the test more robust by placing the non-extern variables in explicit sections, and invert the checks to more accurately verify what we care about in this test. gcc/testsuite/ PR testsuite/114642 * gcc.dg/debug/btf/btf-datasec-3.c: Make test more robust on different architectures. ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2024-04-09 18:12 UTC | newest] Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2024-04-08 15:38 [Bug testsuite/114642] New: new test case gcc.dg/debug/btf/btf-datasec-3.c from r14-6195-gb8cf266f4ca4ff fails for 32 bits seurer at gcc dot gnu.org 2024-04-09 0:04 ` [Bug testsuite/114642] " pinskia at gcc dot gnu.org 2024-04-09 1:58 ` linkw at gcc dot gnu.org 2024-04-09 2:03 ` pinskia at gcc dot gnu.org 2024-04-09 18:12 ` cvs-commit 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).