public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/35435]  New: [4.1/4.2/4.3/4.4 regression] ICE with attribute tls_model in typedef
@ 2008-03-03 20:49 reichelt at gcc dot gnu dot org
  2008-03-03 20:49 ` [Bug c/35435] " reichelt at gcc dot gnu dot org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2008-03-03 20:49 UTC (permalink / raw)
  To: gcc-bugs

The following (valid?) code snippet triggers an ICE since GCC 3.3:

==============================================================
typedef int X __attribute__((tls_model("initial-exec")));
==============================================================

bug.c:1: internal compiler error: tree check: expected var_decl, have type_decl
in handle_tls_model_attribute, at c-common.c:5936
Please submit a full bug report, [etc.]


-- 
           Summary: [4.1/4.2/4.3/4.4 regression] ICE with attribute
                    tls_model in typedef
           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=35435


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

* [Bug c/35435] [4.1/4.2/4.3/4.4 regression] ICE with attribute tls_model in typedef
  2008-03-03 20:49 [Bug c/35435] New: [4.1/4.2/4.3/4.4 regression] ICE with attribute tls_model in typedef reichelt at gcc dot gnu dot org
@ 2008-03-03 20:49 ` reichelt at gcc dot gnu dot org
  2008-03-15  1:34 ` jsm28 at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2008-03-03 20:49 UTC (permalink / raw)
  To: gcc-bugs



-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.1.3


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


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

* [Bug c/35435] [4.1/4.2/4.3/4.4 regression] ICE with attribute tls_model in typedef
  2008-03-03 20:49 [Bug c/35435] New: [4.1/4.2/4.3/4.4 regression] ICE with attribute tls_model in typedef reichelt at gcc dot gnu dot org
  2008-03-03 20:49 ` [Bug c/35435] " reichelt at gcc dot gnu dot org
@ 2008-03-15  1:34 ` jsm28 at gcc dot gnu dot org
  2008-07-04 22:37 ` [Bug c/35435] [4.2/4.3/4.4 " jsm28 at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2008-03-15  1:34 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from jsm28 at gcc dot gnu dot org  2008-03-15 01:33 -------
I don't think this code is valid; the tls_model attribute only makes sense on
an __thread variable.


-- 

jsm28 at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
           Keywords|ice-on-valid-code           |ice-on-invalid-code
           Priority|P3                          |P4
   Last reconfirmed|0000-00-00 00:00:00         |2008-03-15 01:33:17
               date|                            |


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


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

* [Bug c/35435] [4.2/4.3/4.4 regression] ICE with attribute tls_model in typedef
  2008-03-03 20:49 [Bug c/35435] New: [4.1/4.2/4.3/4.4 regression] ICE with attribute tls_model in typedef reichelt at gcc dot gnu dot org
  2008-03-03 20:49 ` [Bug c/35435] " reichelt at gcc dot gnu dot org
  2008-03-15  1:34 ` jsm28 at gcc dot gnu dot org
@ 2008-07-04 22:37 ` jsm28 at gcc dot gnu dot org
  2009-02-04 22:22 ` jsm28 at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2008-07-04 22:37 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from jsm28 at gcc dot gnu dot org  2008-07-04 22:37 -------
Closing 4.1 branch.


-- 

jsm28 at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[4.1/4.2/4.3/4.4 regression]|[4.2/4.3/4.4 regression] ICE
                   |ICE with attribute tls_model|with attribute tls_model in
                   |in typedef                  |typedef
   Target Milestone|4.1.3                       |4.2.5


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


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

* [Bug c/35435] [4.2/4.3/4.4 regression] ICE with attribute tls_model in typedef
  2008-03-03 20:49 [Bug c/35435] New: [4.1/4.2/4.3/4.4 regression] ICE with attribute tls_model in typedef reichelt at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2008-07-04 22:37 ` [Bug c/35435] [4.2/4.3/4.4 " jsm28 at gcc dot gnu dot org
@ 2009-02-04 22:22 ` jsm28 at gcc dot gnu dot org
  2009-02-05  1:18 ` jsm28 at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2009-02-04 22:22 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from jsm28 at gcc dot gnu dot org  2009-02-04 22:22 -------
Testing a patch.


-- 

jsm28 at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |jsm28 at gcc dot gnu dot org
                   |dot org                     |
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2008-03-15 01:33:17         |2009-02-04 22:22:32
               date|                            |


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


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

* [Bug c/35435] [4.2/4.3/4.4 regression] ICE with attribute tls_model in typedef
  2008-03-03 20:49 [Bug c/35435] New: [4.1/4.2/4.3/4.4 regression] ICE with attribute tls_model in typedef reichelt at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2009-02-04 22:22 ` jsm28 at gcc dot gnu dot org
@ 2009-02-05  1:18 ` jsm28 at gcc dot gnu dot org
  2009-02-05 12:14 ` jsm28 at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2009-02-05  1:18 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from jsm28 at gcc dot gnu dot org  2009-02-05 01:18 -------
Subject: Bug 35435

Author: jsm28
Date: Thu Feb  5 01:18:02 2009
New Revision: 143948

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=143948
Log:
        PR c/35435
        * c-common.c (handle_tls_model_attribute): Ignore attribute for
        non-VAR_DECLs without checking DECL_THREAD_LOCAL_P.

testsuite:
        * gcc.dg/tls/diag-6.c: New test.

Added:
    trunk/gcc/testsuite/gcc.dg/tls/diag-6.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/c-common.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug c/35435] [4.2/4.3/4.4 regression] ICE with attribute tls_model in typedef
  2008-03-03 20:49 [Bug c/35435] New: [4.1/4.2/4.3/4.4 regression] ICE with attribute tls_model in typedef reichelt at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2009-02-05  1:18 ` jsm28 at gcc dot gnu dot org
@ 2009-02-05 12:14 ` jsm28 at gcc dot gnu dot org
  2009-02-05 12:18 ` [Bug c/35435] [4.2 " jsm28 at gcc dot gnu dot org
  2009-03-31 15:23 ` jsm28 at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2009-02-05 12:14 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from jsm28 at gcc dot gnu dot org  2009-02-05 12:14 -------
Subject: Bug 35435

Author: jsm28
Date: Thu Feb  5 12:13:52 2009
New Revision: 143963

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=143963
Log:
        PR c/35435
        * c-common.c (handle_tls_model_attribute): Ignore attribute for
        non-VAR_DECLs without checking DECL_THREAD_LOCAL_P.

testsuite:
        * gcc.dg/tls/diag-6.c: New test.

Added:
    branches/gcc-4_3-branch/gcc/testsuite/gcc.dg/tls/diag-6.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=35435


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

* [Bug c/35435] [4.2 regression] ICE with attribute tls_model in typedef
  2008-03-03 20:49 [Bug c/35435] New: [4.1/4.2/4.3/4.4 regression] ICE with attribute tls_model in typedef reichelt at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2009-02-05 12:14 ` jsm28 at gcc dot gnu dot org
@ 2009-02-05 12:18 ` jsm28 at gcc dot gnu dot org
  2009-03-31 15:23 ` jsm28 at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2009-02-05 12:18 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from jsm28 at gcc dot gnu dot org  2009-02-05 12:18 -------
Fixed for 4.4.0 and 4.3.4.  I don't plan to work on a backport to 4.2.


-- 

jsm28 at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|jsm28 at gcc dot gnu dot org|unassigned at gcc dot gnu
                   |                            |dot org
             Status|ASSIGNED                    |NEW
      Known to fail|                            |4.2.4 4.3.3
      Known to work|                            |4.3.4 4.4.0
            Summary|[4.2/4.3/4.4 regression] ICE|[4.2 regression] ICE with
                   |with attribute tls_model in |attribute tls_model in
                   |typedef                     |typedef


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


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

* [Bug c/35435] [4.2 regression] ICE with attribute tls_model in typedef
  2008-03-03 20:49 [Bug c/35435] New: [4.1/4.2/4.3/4.4 regression] ICE with attribute tls_model in typedef reichelt at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2009-02-05 12:18 ` [Bug c/35435] [4.2 " jsm28 at gcc dot gnu dot org
@ 2009-03-31 15:23 ` jsm28 at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2009-03-31 15:23 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from jsm28 at gcc dot gnu dot org  2009-03-31 15:22 -------
Closing 4.2 branch, fixed for 4.3.4 and 4.4.


-- 

jsm28 at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|4.2.5                       |4.3.4


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


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

end of thread, other threads:[~2009-03-31 15:23 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-03 20:49 [Bug c/35435] New: [4.1/4.2/4.3/4.4 regression] ICE with attribute tls_model in typedef reichelt at gcc dot gnu dot org
2008-03-03 20:49 ` [Bug c/35435] " reichelt at gcc dot gnu dot org
2008-03-15  1:34 ` jsm28 at gcc dot gnu dot org
2008-07-04 22:37 ` [Bug c/35435] [4.2/4.3/4.4 " jsm28 at gcc dot gnu dot org
2009-02-04 22:22 ` jsm28 at gcc dot gnu dot org
2009-02-05  1:18 ` jsm28 at gcc dot gnu dot org
2009-02-05 12:14 ` jsm28 at gcc dot gnu dot org
2009-02-05 12:18 ` [Bug c/35435] [4.2 " jsm28 at gcc dot gnu dot org
2009-03-31 15:23 ` jsm28 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).