public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/37645]  New: [4.2/4.3/4.4 regression] ICE with weakref attribute
@ 2008-09-25  6:54 reichelt at gcc dot gnu dot org
  2008-09-25  6:55 ` [Bug c/37645] " reichelt at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2008-09-25  6:54 UTC (permalink / raw)
  To: gcc-bugs

The following code snippet triggers an ICE since GCC 4.1.0:

==========================================================
void foo(int i __attribute__((__weakref__ ("xyz"))));
==========================================================

bug.c:1: internal compiler error: tree check: expected tree that contains 'decl
with visibility' structure, have 'parm_decl' in handle_weakref_attribute, at
c-common.c:6162
Please submit a full bug report, [etc.]

Before GCC 4.1.0 the code was accepted with the following warning:

bug.c:1: warning: '__weakref__' attribute directive ignored


-- 
           Summary: [4.2/4.3/4.4 regression] ICE with weakref attribute
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code, monitored
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: reichelt at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37645


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

* [Bug c/37645] [4.2/4.3/4.4 regression] ICE with weakref attribute
  2008-09-25  6:54 [Bug c/37645] New: [4.2/4.3/4.4 regression] ICE with weakref attribute reichelt at gcc dot gnu dot org
@ 2008-09-25  6:55 ` reichelt at gcc dot gnu dot org
  2008-09-25 14:38 ` jakub at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2008-09-25  6:55 UTC (permalink / raw)
  To: gcc-bugs



-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.2.5


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37645


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

* [Bug c/37645] [4.2/4.3/4.4 regression] ICE with weakref attribute
  2008-09-25  6:54 [Bug c/37645] New: [4.2/4.3/4.4 regression] ICE with weakref attribute reichelt at gcc dot gnu dot org
  2008-09-25  6:55 ` [Bug c/37645] " reichelt at gcc dot gnu dot org
@ 2008-09-25 14:38 ` jakub at gcc dot gnu dot org
  2008-09-26  5:12 ` jakub at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-09-25 14:38 UTC (permalink / raw)
  To: gcc-bugs



-- 

jakub at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |jakub at gcc dot gnu dot org
                   |dot org                     |
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2008-09-25 14:36:43
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37645


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

* [Bug c/37645] [4.2/4.3/4.4 regression] ICE with weakref attribute
  2008-09-25  6:54 [Bug c/37645] New: [4.2/4.3/4.4 regression] ICE with weakref attribute reichelt at gcc dot gnu dot org
  2008-09-25  6:55 ` [Bug c/37645] " reichelt at gcc dot gnu dot org
  2008-09-25 14:38 ` jakub at gcc dot gnu dot org
@ 2008-09-26  5:12 ` jakub at gcc dot gnu dot org
  2008-09-26  5:26 ` jakub at gcc dot gnu dot org
  2008-09-26  5:28 ` jakub at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-09-26  5:12 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from jakub at gcc dot gnu dot org  2008-09-26 05:10 -------
Subject: Bug 37645

Author: jakub
Date: Fri Sep 26 05:09:29 2008
New Revision: 140680

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=140680
Log:
        PR c/37645
        * c-common.c (handle_weakref_attribute): Ignore the attribute unless
        the decl is a VAR_DECL or FUNCTION_DECL.

        * gcc.dg/pr37645.c: New test.

Added:
    trunk/gcc/testsuite/gcc.dg/pr37645.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/c-common.c
    trunk/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37645


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

* [Bug c/37645] [4.2/4.3/4.4 regression] ICE with weakref attribute
  2008-09-25  6:54 [Bug c/37645] New: [4.2/4.3/4.4 regression] ICE with weakref attribute reichelt at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2008-09-26  5:12 ` jakub at gcc dot gnu dot org
@ 2008-09-26  5:26 ` jakub at gcc dot gnu dot org
  2008-09-26  5:28 ` jakub at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-09-26  5:26 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from jakub at gcc dot gnu dot org  2008-09-26 05:25 -------
Subject: Bug 37645

Author: jakub
Date: Fri Sep 26 05:23:48 2008
New Revision: 140681

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=140681
Log:
        PR c/37645
        * c-common.c (handle_weakref_attribute): Ignore the attribute unless
        the decl is a VAR_DECL or FUNCTION_DECL.

        * gcc.dg/pr37645.c: New test.

Added:
    branches/gcc-4_3-branch/gcc/testsuite/gcc.dg/pr37645.c
Modified:
    branches/gcc-4_3-branch/gcc/ChangeLog
    branches/gcc-4_3-branch/gcc/c-common.c
    branches/gcc-4_3-branch/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37645


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

* [Bug c/37645] [4.2/4.3/4.4 regression] ICE with weakref attribute
  2008-09-25  6:54 [Bug c/37645] New: [4.2/4.3/4.4 regression] ICE with weakref attribute reichelt at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2008-09-26  5:26 ` jakub at gcc dot gnu dot org
@ 2008-09-26  5:28 ` jakub at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-09-26  5:28 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from jakub at gcc dot gnu dot org  2008-09-26 05:27 -------
Fixed.


-- 

jakub at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|4.2.5                       |4.3.3


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37645


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

end of thread, other threads:[~2008-09-26  5:28 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-09-25  6:54 [Bug c/37645] New: [4.2/4.3/4.4 regression] ICE with weakref attribute reichelt at gcc dot gnu dot org
2008-09-25  6:55 ` [Bug c/37645] " reichelt at gcc dot gnu dot org
2008-09-25 14:38 ` jakub at gcc dot gnu dot org
2008-09-26  5:12 ` jakub at gcc dot gnu dot org
2008-09-26  5:26 ` jakub at gcc dot gnu dot org
2008-09-26  5:28 ` jakub at gcc dot gnu 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).