public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/104725] New: g++.target/i386/pr35513-1.C etc. FAIL
@ 2022-03-01 9:29 ro at gcc dot gnu.org
2022-03-01 9:29 ` [Bug target/104725] " ro at gcc dot gnu.org
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: ro at gcc dot gnu.org @ 2022-03-01 9:29 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104725
Bug ID: 104725
Summary: g++.target/i386/pr35513-1.C etc. FAIL
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: ro at gcc dot gnu.org
CC: hjl.tools at gmail dot com
Target Milestone: ---
Target: i?86-pc-solaris2.11, i686-pc-linux-gnu
Since 20220209, two tests FAIL on 32-bit Solaris/x86:
+FAIL: g++.target/i386/pr35513-1.C -std=gnu++14 execution test
+FAIL: g++.target/i386/pr35513-1.C -std=gnu++17 execution test
+FAIL: g++.target/i386/pr35513-1.C -std=gnu++20 execution test
+FAIL: g++.target/i386/pr35513-1.C -std=gnu++98 execution test
+FAIL: g++.target/i386/pr35513-2.C -std=gnu++14 execution test
+FAIL: g++.target/i386/pr35513-2.C -std=gnu++17 execution test
+FAIL: g++.target/i386/pr35513-2.C -std=gnu++20 execution test
+FAIL: g++.target/i386/pr35513-2.C -std=gnu++98 execution test
The tests SEGV like this:
Thread 2 received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1 (LWP 1)]
0x0805112d in _GLOBAL__sub_I__Z9throw_bugv ()
(gdb) bt
#0 0x0805112d in _GLOBAL__sub_I__Z9throw_bugv ()
#1 0xfe6b222e in call_array () from /usr/lib/ld.so.1
#2 0xfe6b23e3 in call_init () from /usr/lib/ld.so.1
#3 0xfe6b10af in setup () from /usr/lib/ld.so.1
#4 0xfe6c3fc0 in _setup () from /usr/lib/ld.so.1
#5 0xfe6a38ff in _rt_boot () from /usr/lib/ld.so.1
#6 0xfeffda18 in ?? ()
#7 0xfeffdbb8 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
This is obviously related to
commit 5c4258d7c78a92ab17c14dec1163d87fc42ff019
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Thu Feb 10 05:42:49 2022 -0800
x86: Update PR 35513 tests
1. Require linker with GNU_PROPERTY_1_NEEDED support for PR 35513
run-time tests.
[...]
PR testsuite/104481
* g++.target/i386/pr35513-1.C: Require property_1_needed target.
* g++.target/i386/pr35513-2.C: Likewise.
[...]
* lib/target-supports.exp (check_compile): Support assembly code.
(check_effective_target_property_1_needed): New proc.
I honestly don't see how check_effective_target_property_1_needed does test for
linker GNU_PROPERTY_1_NEEDED support, which Solaris ld certainly lacks, thus
the tests shouldn't run in the first place.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug target/104725] g++.target/i386/pr35513-1.C etc. FAIL
2022-03-01 9:29 [Bug target/104725] New: g++.target/i386/pr35513-1.C etc. FAIL ro at gcc dot gnu.org
@ 2022-03-01 9:29 ` ro at gcc dot gnu.org
2022-03-01 14:15 ` hjl.tools at gmail dot com
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: ro at gcc dot gnu.org @ 2022-03-01 9:29 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104725
Rainer Orth <ro at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |12.0
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug target/104725] g++.target/i386/pr35513-1.C etc. FAIL
2022-03-01 9:29 [Bug target/104725] New: g++.target/i386/pr35513-1.C etc. FAIL ro at gcc dot gnu.org
2022-03-01 9:29 ` [Bug target/104725] " ro at gcc dot gnu.org
@ 2022-03-01 14:15 ` hjl.tools at gmail dot com
2022-03-01 15:07 ` ro at CeBiTec dot Uni-Bielefeld.DE
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: hjl.tools at gmail dot com @ 2022-03-01 14:15 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104725
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
Status|UNCONFIRMED |WAITING
Last reconfirmed| |2022-03-01
--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> ---
It looks like Solaris linker doesn't support -mno-direct-extern-access.
Did you try GNU linker?
This patch limits tests to Linux:
diff --git a/gcc/testsuite/g++.target/i386/pr35513-1.C
b/gcc/testsuite/g++.target/i386/pr35513-1.C
index daa615662c5..82e63277fd2 100644
--- a/gcc/testsuite/g++.target/i386/pr35513-1.C
+++ b/gcc/testsuite/g++.target/i386/pr35513-1.C
@@ -1,4 +1,4 @@
-// { dg-do run { target property_1_needed } }
+// { dg-do run { target { *-*-linux* && property_1_needed } } }
// { dg-options "-O2 -mno-direct-extern-access" }
#include <iostream>
diff --git a/gcc/testsuite/g++.target/i386/pr35513-2.C
b/gcc/testsuite/g++.target/i386/pr35513-2.C
index ecccdaeb666..95782b10cf3 100644
--- a/gcc/testsuite/g++.target/i386/pr35513-2.C
+++ b/gcc/testsuite/g++.target/i386/pr35513-2.C
@@ -1,4 +1,4 @@
-// { dg-do run { target property_1_needed } }
+// { dg-do run { target { *-*-linux* && property_1_needed } } }
// { dg-options "-O2 -mno-direct-extern-access" }
class Foo
BTW, does it fail on i686-pc-linux-gnu for you?
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug target/104725] g++.target/i386/pr35513-1.C etc. FAIL
2022-03-01 9:29 [Bug target/104725] New: g++.target/i386/pr35513-1.C etc. FAIL ro at gcc dot gnu.org
2022-03-01 9:29 ` [Bug target/104725] " ro at gcc dot gnu.org
2022-03-01 14:15 ` hjl.tools at gmail dot com
@ 2022-03-01 15:07 ` ro at CeBiTec dot Uni-Bielefeld.DE
2022-03-01 15:30 ` hjl.tools at gmail dot com
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: ro at CeBiTec dot Uni-Bielefeld.DE @ 2022-03-01 15:07 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104725
--- Comment #2 from ro at CeBiTec dot Uni-Bielefeld.DE <ro at CeBiTec dot Uni-Bielefeld.DE> ---
> --- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> ---
> It looks like Solaris linker doesn't support -mno-direct-extern-access.
Highly unlikely, I'd say.
> Did you try GNU linker?
I do once in a week: when gld is in use, the tests do PASS on solaris
> This patch limits tests to Linux:
Seems quite sensible: GNU_PROPERTY_1_NEEDED is a GNU extension after
all, so the test should be restricted to systems that support it.
> BTW, does it fail on i686-pc-linux-gnu for you?
No: the test PASSes for both x86_64-pc-linux-gnu -m32 and
i686-pc-linux-gnu.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug target/104725] g++.target/i386/pr35513-1.C etc. FAIL
2022-03-01 9:29 [Bug target/104725] New: g++.target/i386/pr35513-1.C etc. FAIL ro at gcc dot gnu.org
` (2 preceding siblings ...)
2022-03-01 15:07 ` ro at CeBiTec dot Uni-Bielefeld.DE
@ 2022-03-01 15:30 ` hjl.tools at gmail dot com
2022-03-01 15:36 ` ro at CeBiTec dot Uni-Bielefeld.DE
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: hjl.tools at gmail dot com @ 2022-03-01 15:30 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104725
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |NEW
Target|i?86-pc-solaris2.11, |i?86-pc-solaris2.11
|i686-pc-linux-gnu |
--- Comment #3 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to ro@CeBiTec.Uni-Bielefeld.DE from comment #2)
> > --- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> ---
> > It looks like Solaris linker doesn't support -mno-direct-extern-access.
>
> Highly unlikely, I'd say.
>
> > Did you try GNU linker?
>
> I do once in a week: when gld is in use, the tests do PASS on solaris
>
> > This patch limits tests to Linux:
>
> Seems quite sensible: GNU_PROPERTY_1_NEEDED is a GNU extension after
> all, so the test should be restricted to systems that support it.
I will check in my patch.
> > BTW, does it fail on i686-pc-linux-gnu for you?
>
> No: the test PASSes for both x86_64-pc-linux-gnu -m32 and
> i686-pc-linux-gnu.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug target/104725] g++.target/i386/pr35513-1.C etc. FAIL
2022-03-01 9:29 [Bug target/104725] New: g++.target/i386/pr35513-1.C etc. FAIL ro at gcc dot gnu.org
` (3 preceding siblings ...)
2022-03-01 15:30 ` hjl.tools at gmail dot com
@ 2022-03-01 15:36 ` ro at CeBiTec dot Uni-Bielefeld.DE
2022-03-01 15:45 ` cvs-commit at gcc dot gnu.org
2022-03-01 15:50 ` [Bug testsuite/104725] " hjl.tools at gmail dot com
6 siblings, 0 replies; 8+ messages in thread
From: ro at CeBiTec dot Uni-Bielefeld.DE @ 2022-03-01 15:36 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104725
--- Comment #4 from ro at CeBiTec dot Uni-Bielefeld.DE <ro at CeBiTec dot Uni-Bielefeld.DE> ---
> --- Comment #3 from H.J. Lu <hjl.tools at gmail dot com> ---
[...]
>> > This patch limits tests to Linux:
>>
>> Seems quite sensible: GNU_PROPERTY_1_NEEDED is a GNU extension after
>> all, so the test should be restricted to systems that support it.
>
> I will check in my patch.
Fine: thanks for the quick fix.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug target/104725] g++.target/i386/pr35513-1.C etc. FAIL
2022-03-01 9:29 [Bug target/104725] New: g++.target/i386/pr35513-1.C etc. FAIL ro at gcc dot gnu.org
` (4 preceding siblings ...)
2022-03-01 15:36 ` ro at CeBiTec dot Uni-Bielefeld.DE
@ 2022-03-01 15:45 ` cvs-commit at gcc dot gnu.org
2022-03-01 15:50 ` [Bug testsuite/104725] " hjl.tools at gmail dot com
6 siblings, 0 replies; 8+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2022-03-01 15:45 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104725
--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by H.J. Lu <hjl@gcc.gnu.org>:
https://gcc.gnu.org/g:673a10aee1aafe0c99bfadc29a7458339bdddb3a
commit r12-7436-g673a10aee1aafe0c99bfadc29a7458339bdddb3a
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Tue Mar 1 07:39:33 2022 -0800
x86: Limit PR 35513 tests to Linux
Limit PR 35513 tests to Linux since they fail on 32-bit Solaris/x86 with
Solaris linker.
PR testsuite/104725
* g++.target/i386/pr35513-1.C: Limit to Linux.
* g++.target/i386/pr35513-2.C: Likewise.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug testsuite/104725] g++.target/i386/pr35513-1.C etc. FAIL
2022-03-01 9:29 [Bug target/104725] New: g++.target/i386/pr35513-1.C etc. FAIL ro at gcc dot gnu.org
` (5 preceding siblings ...)
2022-03-01 15:45 ` cvs-commit at gcc dot gnu.org
@ 2022-03-01 15:50 ` hjl.tools at gmail dot com
6 siblings, 0 replies; 8+ messages in thread
From: hjl.tools at gmail dot com @ 2022-03-01 15:50 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104725
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Component|target |testsuite
Resolution|--- |FIXED
--- Comment #6 from H.J. Lu <hjl.tools at gmail dot com> ---
Fixed.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2022-03-01 15:50 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-01 9:29 [Bug target/104725] New: g++.target/i386/pr35513-1.C etc. FAIL ro at gcc dot gnu.org
2022-03-01 9:29 ` [Bug target/104725] " ro at gcc dot gnu.org
2022-03-01 14:15 ` hjl.tools at gmail dot com
2022-03-01 15:07 ` ro at CeBiTec dot Uni-Bielefeld.DE
2022-03-01 15:30 ` hjl.tools at gmail dot com
2022-03-01 15:36 ` ro at CeBiTec dot Uni-Bielefeld.DE
2022-03-01 15:45 ` cvs-commit at gcc dot gnu.org
2022-03-01 15:50 ` [Bug testsuite/104725] " hjl.tools at gmail dot com
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).