public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug d/102959] New: gdc.dg/torture/pr96435.d FAILs
@ 2021-10-27 10:55 ro at gcc dot gnu.org
  2021-10-27 10:56 ` [Bug d/102959] " ro at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: ro at gcc dot gnu.org @ 2021-10-27 10:55 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102959

            Bug ID: 102959
           Summary: gdc.dg/torture/pr96435.d FAILs
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: d
          Assignee: ibuclaw at gdcproject dot org
          Reporter: ro at gcc dot gnu.org
  Target Milestone: ---
            Target: sparc*-sun-solaris2.11, hppa-unknown-linux-gnu

The gdc.dg/torture/pr96435.d test has been FAILing on SPARC (32 and 64-bit) and
HPPA since it was installed:

FAIL: gdc.dg/torture/pr96435.d   -O0  execution test
FAIL: gdc.dg/torture/pr96435.d   -O0 -frelease  execution test
FAIL: gdc.dg/torture/pr96435.d   -O0 -frelease -g  execution test
FAIL: gdc.dg/torture/pr96435.d   -O0 -g  execution test
FAIL: gdc.dg/torture/pr96435.d   -O1  execution test
FAIL: gdc.dg/torture/pr96435.d   -O1 -frelease  execution test
FAIL: gdc.dg/torture/pr96435.d   -O1 -frelease -g  execution test
FAIL: gdc.dg/torture/pr96435.d   -O1 -g  execution test
FAIL: gdc.dg/torture/pr96435.d   -O2  execution test
FAIL: gdc.dg/torture/pr96435.d   -O2 -frelease  execution test
FAIL: gdc.dg/torture/pr96435.d   -O2 -frelease -g  execution test
FAIL: gdc.dg/torture/pr96435.d   -O2 -g  execution test
FAIL: gdc.dg/torture/pr96435.d   -O3  execution test
FAIL: gdc.dg/torture/pr96435.d   -O3 -frelease  execution test
FAIL: gdc.dg/torture/pr96435.d   -O3 -frelease -g  execution test
FAIL: gdc.dg/torture/pr96435.d   -O3 -g  execution test
FAIL: gdc.dg/torture/pr96435.d   -Os  execution test
FAIL: gdc.dg/torture/pr96435.d   -Os -frelease  execution test
FAIL: gdc.dg/torture/pr96435.d   -Os -frelease -g  execution test
FAIL: gdc.dg/torture/pr96435.d   -Os -g  execution test

Adding -g3 to the -O0 case gives

core.exception.AssertError@/vol/gcc/src/hg/master/local/gcc/testsuite/gdc.dg/torture/pr96435.d(10):
Assertion failure
----------------
/vol/gcc/src/hg/master/local/libphobos/libdruntime/gcc/deh.d:476 _d_throw
[0x93817]
/vol/gcc/src/hg/master/local/libphobos/libdruntime/core/exception.d:441
onAssertError [0x73173]
/vol/gcc/src/hg/master/local/libphobos/libdruntime/core/exception.d:631
_d_assertp [0x733ef]
/vol/gcc/src/hg/master/local/gcc/testsuite/gdc.dg/torture/pr96435.d:10 @safe
bool pr96435.test96435() [0x6ea03]
/vol/gcc/src/hg/master/local/gcc/testsuite/gdc.dg/torture/pr96435.d:16 _Dmain
[0x6e8e3]

Thread 2 hit Breakpoint 1, pr96435.test96435() () at
/vol/gcc/src/hg/master/local/gcc/testsuite/gdc.dg/torture/pr96435.d:6
6           int[2] array = [16, 678];
(gdb) p array
$1 = {0, 0}
(gdb) n
8           U u;
(gdb) p array
$2 = {16, 678}
(gdb) p u
$3 = {i = 0, b = false}
(gdb) n
9           u.i = 0xDEADBEEF;
(gdb) n
10          assert(array[u.b] == 678);
(gdb) p u
$4 = {i = -559038737, b = 222}
(gdb) p/x u.i
$7 = 0xdeadbeef

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug d/102959] gdc.dg/torture/pr96435.d FAILs
  2021-10-27 10:55 [Bug d/102959] New: gdc.dg/torture/pr96435.d FAILs ro at gcc dot gnu.org
@ 2021-10-27 10:56 ` ro at gcc dot gnu.org
  2021-10-31  8:28 ` ibuclaw at gdcproject dot org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: ro at gcc dot gnu.org @ 2021-10-27 10:56 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102959

Rainer Orth <ro at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |12.0

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug d/102959] gdc.dg/torture/pr96435.d FAILs
  2021-10-27 10:55 [Bug d/102959] New: gdc.dg/torture/pr96435.d FAILs ro at gcc dot gnu.org
  2021-10-27 10:56 ` [Bug d/102959] " ro at gcc dot gnu.org
@ 2021-10-31  8:28 ` ibuclaw at gdcproject dot org
  2021-10-31 18:52 ` cvs-commit at gcc dot gnu.org
  2021-10-31 21:03 ` ibuclaw at gdcproject dot org
  3 siblings, 0 replies; 5+ messages in thread
From: ibuclaw at gdcproject dot org @ 2021-10-31  8:28 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102959

--- Comment #1 from Iain Buclaw <ibuclaw at gdcproject dot org> ---
(In reply to Rainer Orth from comment #0)
> (gdb) p array
> $2 = {16, 678}
> (gdb) p u
> $3 = {i = 0, b = false}
> (gdb) n
> 9	    u.i = 0xDEADBEEF;
> (gdb) n
> 10	    assert(array[u.b] == 678);
> (gdb) p u
> $4 = {i = -559038737, b = 222}
> (gdb) p/x u.i
> $7 = 0xdeadbeef
OK, so the test didn't account for endianess.  Will adjust the value or add a
version condition for BigEndian to assert the value is the other index.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug d/102959] gdc.dg/torture/pr96435.d FAILs
  2021-10-27 10:55 [Bug d/102959] New: gdc.dg/torture/pr96435.d FAILs ro at gcc dot gnu.org
  2021-10-27 10:56 ` [Bug d/102959] " ro at gcc dot gnu.org
  2021-10-31  8:28 ` ibuclaw at gdcproject dot org
@ 2021-10-31 18:52 ` cvs-commit at gcc dot gnu.org
  2021-10-31 21:03 ` ibuclaw at gdcproject dot org
  3 siblings, 0 replies; 5+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-10-31 18:52 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102959

--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Iain Buclaw <ibuclaw@gcc.gnu.org>:

https://gcc.gnu.org/g:1b5f73858412731bb2e821bdf0fc85d6cc012d33

commit r12-4812-g1b5f73858412731bb2e821bdf0fc85d6cc012d33
Author: Iain Buclaw <ibuclaw@gdcproject.org>
Date:   Sun Oct 31 16:49:33 2021 +0100

    d: Fix pr96435.d failing on SPARC and HPPA

    The value used to initialize the integer field in the union didn't
    account for BigEndian targets running this code.

            PR d/102959

    gcc/testsuite/ChangeLog:

            * gdc.dg/torture/pr96435.d: Adjust for BigEndian.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug d/102959] gdc.dg/torture/pr96435.d FAILs
  2021-10-27 10:55 [Bug d/102959] New: gdc.dg/torture/pr96435.d FAILs ro at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2021-10-31 18:52 ` cvs-commit at gcc dot gnu.org
@ 2021-10-31 21:03 ` ibuclaw at gdcproject dot org
  3 siblings, 0 replies; 5+ messages in thread
From: ibuclaw at gdcproject dot org @ 2021-10-31 21:03 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102959

Iain Buclaw <ibuclaw at gdcproject dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |FIXED

--- Comment #3 from Iain Buclaw <ibuclaw at gdcproject dot org> ---
Fix committed.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-10-31 21:03 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-27 10:55 [Bug d/102959] New: gdc.dg/torture/pr96435.d FAILs ro at gcc dot gnu.org
2021-10-27 10:56 ` [Bug d/102959] " ro at gcc dot gnu.org
2021-10-31  8:28 ` ibuclaw at gdcproject dot org
2021-10-31 18:52 ` cvs-commit at gcc dot gnu.org
2021-10-31 21:03 ` ibuclaw at gdcproject dot 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).