public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug d/95173] New: [D] ICE on some architecture targets when trying to use unknown attribute
@ 2020-05-17 11:35 witold.baryluk+gcc at gmail dot com
  2020-06-25 15:37 ` [Bug d/95173] " cvs-commit at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: witold.baryluk+gcc at gmail dot com @ 2020-05-17 11:35 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 95173
           Summary: [D] ICE on some architecture targets when trying to
                    use unknown attribute
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: d
          Assignee: ibuclaw at gdcproject dot org
          Reporter: witold.baryluk+gcc at gmail dot com
  Target Milestone: ---

https://explore.dgnu.org/z/bseyKQ


```
import gcc.attribute;

@attribute("foo")
void f() {}
```

This code crashes the compiler when compiling for alpha-linux-gnu, sparc64-elf,
hppa-linux-gnu, mmix-knuth-mmixware, pdp11-aout, lm32-elf and possibly more
with variations. (But sparc64-sun-solaris2.11 for examples works fine).

The code compiles correctly for known attributes.

Other targets do compile without a crash, just with a warning about unknown
attribute. That is correct behaviour.

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

* [Bug d/95173] [D] ICE on some architecture targets when trying to use unknown attribute
  2020-05-17 11:35 [Bug d/95173] New: [D] ICE on some architecture targets when trying to use unknown attribute witold.baryluk+gcc at gmail dot com
@ 2020-06-25 15:37 ` cvs-commit at gcc dot gnu.org
  2020-06-26 13:46 ` cvs-commit at gcc dot gnu.org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2020-06-25 15:37 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 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:62e02c8729a75c4a859edc18e0bcafb87d717f46

commit r11-1658-g62e02c8729a75c4a859edc18e0bcafb87d717f46
Author: Iain Buclaw <ibuclaw@gdcproject.org>
Date:   Tue Jun 23 16:25:29 2020 +0200

    d: Fix ICE in uda_attribute_p when looking up unknown attribute

    The target attribute table is not guaranteed to be set in all backends.

    gcc/d/ChangeLog:

            PR d/95173
            * d-attribs.cc (uda_attribute_p): Don't search target attribute
table
            if NULL.

    gcc/testsuite/ChangeLog:

            PR d/95173
            * gdc.dg/pr95173.d: New test.

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

* [Bug d/95173] [D] ICE on some architecture targets when trying to use unknown attribute
  2020-05-17 11:35 [Bug d/95173] New: [D] ICE on some architecture targets when trying to use unknown attribute witold.baryluk+gcc at gmail dot com
  2020-06-25 15:37 ` [Bug d/95173] " cvs-commit at gcc dot gnu.org
@ 2020-06-26 13:46 ` cvs-commit at gcc dot gnu.org
  2020-06-26 13:50 ` cvs-commit at gcc dot gnu.org
  2020-06-26 14:09 ` ibuclaw at gdcproject dot org
  3 siblings, 0 replies; 5+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2020-06-26 13:46 UTC (permalink / raw)
  To: gcc-bugs

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

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

https://gcc.gnu.org/g:3e1af1d0be13e4615e001fb19e294c8d28d69f94

commit r10-8372-g3e1af1d0be13e4615e001fb19e294c8d28d69f94
Author: Iain Buclaw <ibuclaw@gdcproject.org>
Date:   Tue Jun 23 16:25:29 2020 +0200

    d: Fix ICE in uda_attribute_p when looking up unknown attribute

    The target attribute table is not guaranteed to be set in all backends.

    gcc/d/ChangeLog:

            PR d/95173
            * d-attribs.cc (uda_attribute_p): Don't search target attribute
table
            if NULL.

    gcc/testsuite/ChangeLog:

            PR d/95173
            * gdc.dg/pr95173.d: New test.

    (cherry picked from commit 62e02c8729a75c4a859edc18e0bcafb87d717f46)

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

* [Bug d/95173] [D] ICE on some architecture targets when trying to use unknown attribute
  2020-05-17 11:35 [Bug d/95173] New: [D] ICE on some architecture targets when trying to use unknown attribute witold.baryluk+gcc at gmail dot com
  2020-06-25 15:37 ` [Bug d/95173] " cvs-commit at gcc dot gnu.org
  2020-06-26 13:46 ` cvs-commit at gcc dot gnu.org
@ 2020-06-26 13:50 ` cvs-commit at gcc dot gnu.org
  2020-06-26 14:09 ` ibuclaw at gdcproject dot org
  3 siblings, 0 replies; 5+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2020-06-26 13:50 UTC (permalink / raw)
  To: gcc-bugs

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

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

https://gcc.gnu.org/g:53bc489468c3bf2958151ba624679cadff403ce8

commit r9-8700-g53bc489468c3bf2958151ba624679cadff403ce8
Author: Iain Buclaw <ibuclaw@gdcproject.org>
Date:   Tue Jun 23 16:25:29 2020 +0200

    d: Fix ICE in uda_attribute_p when looking up unknown attribute

    The target attribute table is not guaranteed to be set in all backends.

    gcc/d/ChangeLog:

            PR d/95173
            * d-attribs.cc (uda_attribute_p): Don't search target attribute
table
            if NULL.

    gcc/testsuite/ChangeLog:

            PR d/95173
            * gdc.dg/pr95173.d: New test.

    (cherry picked from commit 62e02c8729a75c4a859edc18e0bcafb87d717f46)

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

* [Bug d/95173] [D] ICE on some architecture targets when trying to use unknown attribute
  2020-05-17 11:35 [Bug d/95173] New: [D] ICE on some architecture targets when trying to use unknown attribute witold.baryluk+gcc at gmail dot com
                   ` (2 preceding siblings ...)
  2020-06-26 13:50 ` cvs-commit at gcc dot gnu.org
@ 2020-06-26 14:09 ` ibuclaw at gdcproject dot org
  3 siblings, 0 replies; 5+ messages in thread
From: ibuclaw at gdcproject dot org @ 2020-06-26 14:09 UTC (permalink / raw)
  To: gcc-bugs

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

Iain Buclaw <ibuclaw at gdcproject dot org> changed:

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

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

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

end of thread, other threads:[~2020-06-26 14:09 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-17 11:35 [Bug d/95173] New: [D] ICE on some architecture targets when trying to use unknown attribute witold.baryluk+gcc at gmail dot com
2020-06-25 15:37 ` [Bug d/95173] " cvs-commit at gcc dot gnu.org
2020-06-26 13:46 ` cvs-commit at gcc dot gnu.org
2020-06-26 13:50 ` cvs-commit at gcc dot gnu.org
2020-06-26 14:09 ` 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).