public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug d/94321] New: gdc.dg/pr92216.d FAILs on 32-bit targets
@ 2020-03-25 11:58 ro at gcc dot gnu.org
  2020-03-25 11:58 ` [Bug d/94321] " ro at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: ro at gcc dot gnu.org @ 2020-03-25 11:58 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 94321
           Summary: gdc.dg/pr92216.d FAILs on 32-bit targets
           Product: gcc
           Version: 10.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: i386-pc-solaris2.11, sparc-sun-solaris2.11

As originally reported in

https://gcc.gnu.org/pipermail/gcc-patches/2020-March/542177.html

[which didn't get Cc'ed to you due to the abominable header rewriting]:

The new gdc.dg/pr92216.d testcase FAILs on 32-bit Solaris/SPARC and x86 (and,
I suppose, on every non-64-bit target):

+FAIL: gdc.dg/pr92216.d -O0 scan-assembler
_DT16_D7imports7pr922161B8__mixin24getSMFZPv[: \\t\\n]
+FAIL: gdc.dg/pr92216.d -O0 -frelease scan-assembler
_DT16_D7imports7pr922161B8__mixin24getSMFZPv[: \\t\\n]
+FAIL: gdc.dg/pr92216.d -O0 -frelease -g scan-assembler
_DT16_D7imports7pr922161B8__mixin24getSMFZPv[: \\t\\n]
+FAIL: gdc.dg/pr92216.d -O0 -g scan-assembler
_DT16_D7imports7pr922161B8__mixin24getSMFZPv[: \\t\\n]

Same at -O[1-3s].  While the 64-bit version contains the expected

_DT16_D7imports7pr922161B8__mixin24getSMFZPv

the 32-bit one has

_DT8_D7imports7pr922161B8__mixin24getSMFZPv

I can't tell for certain if it's enough to allow for those two variants
or if more is needed.

Btw., I noticed that binutils 2.34 c++filt -s dlang cannot demangle those
symbols.  Is this expected?

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

* [Bug d/94321] gdc.dg/pr92216.d FAILs on 32-bit targets
  2020-03-25 11:58 [Bug d/94321] New: gdc.dg/pr92216.d FAILs on 32-bit targets ro at gcc dot gnu.org
@ 2020-03-25 11:58 ` ro at gcc dot gnu.org
  2020-03-25 20:24 ` danglin at gcc dot gnu.org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: ro at gcc dot gnu.org @ 2020-03-25 11:58 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |10.0

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

* [Bug d/94321] gdc.dg/pr92216.d FAILs on 32-bit targets
  2020-03-25 11:58 [Bug d/94321] New: gdc.dg/pr92216.d FAILs on 32-bit targets ro at gcc dot gnu.org
  2020-03-25 11:58 ` [Bug d/94321] " ro at gcc dot gnu.org
@ 2020-03-25 20:24 ` danglin at gcc dot gnu.org
  2020-04-01 18:08 ` ibuclaw at gdcproject dot org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: danglin at gcc dot gnu.org @ 2020-03-25 20:24 UTC (permalink / raw)
  To: gcc-bugs

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

John David Anglin <danglin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|i386-pc-solaris2.11,        |i386-pc-solaris2.11,
                   |sparc-sun-solaris2.11       |sparc-sun-solaris2.11,
                   |                            |hppa-unknown-linux-gnu
                 CC|                            |danglin at gcc dot gnu.org

--- Comment #1 from John David Anglin <danglin at gcc dot gnu.org> ---
Same issue on hppa-linux.

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

* [Bug d/94321] gdc.dg/pr92216.d FAILs on 32-bit targets
  2020-03-25 11:58 [Bug d/94321] New: gdc.dg/pr92216.d FAILs on 32-bit targets ro at gcc dot gnu.org
  2020-03-25 11:58 ` [Bug d/94321] " ro at gcc dot gnu.org
  2020-03-25 20:24 ` danglin at gcc dot gnu.org
@ 2020-04-01 18:08 ` ibuclaw at gdcproject dot org
  2020-04-01 20:56 ` ibuclaw at gdcproject dot org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: ibuclaw at gdcproject dot org @ 2020-04-01 18:08 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Iain Buclaw <ibuclaw at gdcproject dot org> ---
(In reply to Rainer Orth from comment #0)
> As originally reported in
> 
> https://gcc.gnu.org/pipermail/gcc-patches/2020-March/542177.html
> 
> [which didn't get Cc'ed to you due to the abominable header rewriting]:
> 
> The new gdc.dg/pr92216.d testcase FAILs on 32-bit Solaris/SPARC and x86 (and,
> I suppose, on every non-64-bit target):
> 
> +FAIL: gdc.dg/pr92216.d -O0 scan-assembler
> _DT16_D7imports7pr922161B8__mixin24getSMFZPv[: \\t\\n]
> +FAIL: gdc.dg/pr92216.d -O0 -frelease scan-assembler
> _DT16_D7imports7pr922161B8__mixin24getSMFZPv[: \\t\\n]
> +FAIL: gdc.dg/pr92216.d -O0 -frelease -g scan-assembler
> _DT16_D7imports7pr922161B8__mixin24getSMFZPv[: \\t\\n]
> +FAIL: gdc.dg/pr92216.d -O0 -g scan-assembler
> _DT16_D7imports7pr922161B8__mixin24getSMFZPv[: \\t\\n]
> 
> Same at -O[1-3s].  While the 64-bit version contains the expected
> 
> _DT16_D7imports7pr922161B8__mixin24getSMFZPv
> 
> the 32-bit one has
> 
> _DT8_D7imports7pr922161B8__mixin24getSMFZPv
> 
> I can't tell for certain if it's enough to allow for those two variants
> or if more is needed.
>

That discrepancy is the encoded this pointer offset.  I didn't consider that
this information was present when I added the test.


> Btw., I noticed that binutils 2.34 c++filt -s dlang cannot demangle those
> symbols.  Is this expected?

Yes, these thunk symbols are a non-standard extension.

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

* [Bug d/94321] gdc.dg/pr92216.d FAILs on 32-bit targets
  2020-03-25 11:58 [Bug d/94321] New: gdc.dg/pr92216.d FAILs on 32-bit targets ro at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2020-04-01 18:08 ` ibuclaw at gdcproject dot org
@ 2020-04-01 20:56 ` ibuclaw at gdcproject dot org
  2020-04-01 21:10 ` cvs-commit at gcc dot gnu.org
  2020-04-01 21:21 ` ibuclaw at gdcproject dot org
  5 siblings, 0 replies; 7+ messages in thread
From: ibuclaw at gdcproject dot org @ 2020-04-01 20:56 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Iain Buclaw <ibuclaw at gdcproject dot org> ---
FYI, I checked on avr-elf as well, and the symbol is:

_DT4_D7pr922161C9getStructMFZv

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

* [Bug d/94321] gdc.dg/pr92216.d FAILs on 32-bit targets
  2020-03-25 11:58 [Bug d/94321] New: gdc.dg/pr92216.d FAILs on 32-bit targets ro at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2020-04-01 20:56 ` ibuclaw at gdcproject dot org
@ 2020-04-01 21:10 ` cvs-commit at gcc dot gnu.org
  2020-04-01 21:21 ` ibuclaw at gdcproject dot org
  5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2020-04-01 21:10 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 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:fb25041e11d92ea2df2e92065b256f8e5aa58a6c

commit r10-7504-gfb25041e11d92ea2df2e92065b256f8e5aa58a6c
Author: Iain Buclaw <ibuclaw@gdcproject.org>
Date:   Wed Apr 1 23:02:01 2020 +0200

    d: Fix gdc.dg/pr92216.d FAILs on 32-bit targets

    The symbol being scanned for only matched on 64-bit targets.

    gcc/testsuite/ChangeLog:

            PR d/94321
            * gdc.dg/pr92216.d: Update to work on targets with 16 or 32-bit
            pointers.

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

* [Bug d/94321] gdc.dg/pr92216.d FAILs on 32-bit targets
  2020-03-25 11:58 [Bug d/94321] New: gdc.dg/pr92216.d FAILs on 32-bit targets ro at gcc dot gnu.org
                   ` (4 preceding siblings ...)
  2020-04-01 21:10 ` cvs-commit at gcc dot gnu.org
@ 2020-04-01 21:21 ` ibuclaw at gdcproject dot org
  5 siblings, 0 replies; 7+ messages in thread
From: ibuclaw at gdcproject dot org @ 2020-04-01 21:21 UTC (permalink / raw)
  To: gcc-bugs

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

Iain Buclaw <ibuclaw at gdcproject dot org> changed:

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

--- Comment #5 from Iain Buclaw <ibuclaw at gdcproject dot org> ---
Done.

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

end of thread, other threads:[~2020-04-01 21:21 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-25 11:58 [Bug d/94321] New: gdc.dg/pr92216.d FAILs on 32-bit targets ro at gcc dot gnu.org
2020-03-25 11:58 ` [Bug d/94321] " ro at gcc dot gnu.org
2020-03-25 20:24 ` danglin at gcc dot gnu.org
2020-04-01 18:08 ` ibuclaw at gdcproject dot org
2020-04-01 20:56 ` ibuclaw at gdcproject dot org
2020-04-01 21:10 ` cvs-commit at gcc dot gnu.org
2020-04-01 21:21 ` 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).