public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug inline-asm/32109]  New: [4.1/4.2/4.3 regression] ICE with inline-asm and class with destructor
@ 2007-05-27 21:32 reichelt at gcc dot gnu dot org
  2007-05-27 21:33 ` [Bug inline-asm/32109] " reichelt at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2007-05-27 21:32 UTC (permalink / raw)
  To: gcc-bugs

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

=================================
struct A
{
  ~A();
};

struct B
{
  A a;
  B();
};

B::B()
{
  asm("" : : "r"(a) );
}
=================================

bug.cc: In constructor 'B::B()':
bug.cc:14: internal compiler error: in create_tmp_var, at gimplify.c:489
Please submit a full bug report, [etc.]


-- 
           Summary: [4.1/4.2/4.3 regression] ICE with inline-asm and class
                    with destructor
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code, monitored
          Severity: normal
          Priority: P3
         Component: inline-asm
        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=32109


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

* [Bug inline-asm/32109] [4.1/4.2/4.3 regression] ICE with inline-asm and class with destructor
  2007-05-27 21:32 [Bug inline-asm/32109] New: [4.1/4.2/4.3 regression] ICE with inline-asm and class with destructor reichelt at gcc dot gnu dot org
@ 2007-05-27 21:33 ` reichelt at gcc dot gnu dot org
  2007-05-27 21:38 ` pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2007-05-27 21:33 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=32109


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

* [Bug inline-asm/32109] [4.1/4.2/4.3 regression] ICE with inline-asm and class with destructor
  2007-05-27 21:32 [Bug inline-asm/32109] New: [4.1/4.2/4.3 regression] ICE with inline-asm and class with destructor reichelt at gcc dot gnu dot org
  2007-05-27 21:33 ` [Bug inline-asm/32109] " reichelt at gcc dot gnu dot org
@ 2007-05-27 21:38 ` pinskia at gcc dot gnu dot org
  2007-06-20  6:37 ` jakub at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-05-27 21:38 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2007-05-27 21:38 -------
This code is not valid, a can never be in a register.


-- 


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


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

* [Bug inline-asm/32109] [4.1/4.2/4.3 regression] ICE with inline-asm and class with destructor
  2007-05-27 21:32 [Bug inline-asm/32109] New: [4.1/4.2/4.3 regression] ICE with inline-asm and class with destructor reichelt at gcc dot gnu dot org
  2007-05-27 21:33 ` [Bug inline-asm/32109] " reichelt at gcc dot gnu dot org
  2007-05-27 21:38 ` pinskia at gcc dot gnu dot org
@ 2007-06-20  6:37 ` jakub at gcc dot gnu dot org
  2007-06-20  6:46 ` jakub at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu dot org @ 2007-06-20  6:37 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from jakub at gcc dot gnu dot org  2007-06-20 06:37 -------
Subject: Bug 32109

Author: jakub
Date: Wed Jun 20 06:37:17 2007
New Revision: 125874

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=125874
Log:
        PR inline-asm/32109
        * gimplify.c (gimplify_asm_expr): Issue error if type is addressable
        and !allows_mem.

        * g++.dg/ext/asm10.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/ext/asm10.C
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/gimplify.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug inline-asm/32109] [4.1/4.2/4.3 regression] ICE with inline-asm and class with destructor
  2007-05-27 21:32 [Bug inline-asm/32109] New: [4.1/4.2/4.3 regression] ICE with inline-asm and class with destructor reichelt at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2007-06-20  6:37 ` jakub at gcc dot gnu dot org
@ 2007-06-20  6:46 ` jakub at gcc dot gnu dot org
  2007-06-20  6:52 ` jakub at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu dot org @ 2007-06-20  6:46 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from jakub at gcc dot gnu dot org  2007-06-20 06:46 -------
Subject: Bug 32109

Author: jakub
Date: Wed Jun 20 06:46:31 2007
New Revision: 125878

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=125878
Log:
        PR inline-asm/32109
        * gimplify.c (gimplify_asm_expr): Issue error if type is addressable
        and !allows_mem.

        * g++.dg/ext/asm10.C: New test.

Added:
    branches/gcc-4_2-branch/gcc/testsuite/g++.dg/ext/asm10.C
Modified:
    branches/gcc-4_2-branch/gcc/ChangeLog
    branches/gcc-4_2-branch/gcc/gimplify.c
    branches/gcc-4_2-branch/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug inline-asm/32109] [4.1/4.2/4.3 regression] ICE with inline-asm and class with destructor
  2007-05-27 21:32 [Bug inline-asm/32109] New: [4.1/4.2/4.3 regression] ICE with inline-asm and class with destructor reichelt at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2007-06-20  6:46 ` jakub at gcc dot gnu dot org
@ 2007-06-20  6:52 ` jakub at gcc dot gnu dot org
  2007-06-20  9:46 ` jakub at gcc dot gnu dot org
  2007-06-25 22:33 ` pluto at agmk dot net
  6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu dot org @ 2007-06-20  6:52 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from jakub at gcc dot gnu dot org  2007-06-20 06:51 -------
Subject: Bug 32109

Author: jakub
Date: Wed Jun 20 06:51:47 2007
New Revision: 125880

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=125880
Log:
        PR inline-asm/32109
        * gimplify.c (gimplify_asm_expr): Issue error if type is addressable
        and !allows_mem.

        * g++.dg/ext/asm10.C: New test.

Added:
    branches/gcc-4_1-branch/gcc/testsuite/g++.dg/ext/asm10.C
Modified:
    branches/gcc-4_1-branch/gcc/ChangeLog
    branches/gcc-4_1-branch/gcc/gimplify.c
    branches/gcc-4_1-branch/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug inline-asm/32109] [4.1/4.2/4.3 regression] ICE with inline-asm and class with destructor
  2007-05-27 21:32 [Bug inline-asm/32109] New: [4.1/4.2/4.3 regression] ICE with inline-asm and class with destructor reichelt at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2007-06-20  6:52 ` jakub at gcc dot gnu dot org
@ 2007-06-20  9:46 ` jakub at gcc dot gnu dot org
  2007-06-25 22:33 ` pluto at agmk dot net
  6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu dot org @ 2007-06-20  9:46 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from jakub at gcc dot gnu dot org  2007-06-20 09:46 -------
Fixed.


-- 

jakub at gcc dot gnu dot org changed:

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


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


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

* [Bug inline-asm/32109] [4.1/4.2/4.3 regression] ICE with inline-asm and class with destructor
  2007-05-27 21:32 [Bug inline-asm/32109] New: [4.1/4.2/4.3 regression] ICE with inline-asm and class with destructor reichelt at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2007-06-20  9:46 ` jakub at gcc dot gnu dot org
@ 2007-06-25 22:33 ` pluto at agmk dot net
  6 siblings, 0 replies; 8+ messages in thread
From: pluto at agmk dot net @ 2007-06-25 22:33 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from pluto at agmk dot net  2007-06-25 22:33 -------
this is a duplicate of PR23399.


-- 


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


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

end of thread, other threads:[~2007-06-25 22:33 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-27 21:32 [Bug inline-asm/32109] New: [4.1/4.2/4.3 regression] ICE with inline-asm and class with destructor reichelt at gcc dot gnu dot org
2007-05-27 21:33 ` [Bug inline-asm/32109] " reichelt at gcc dot gnu dot org
2007-05-27 21:38 ` pinskia at gcc dot gnu dot org
2007-06-20  6:37 ` jakub at gcc dot gnu dot org
2007-06-20  6:46 ` jakub at gcc dot gnu dot org
2007-06-20  6:52 ` jakub at gcc dot gnu dot org
2007-06-20  9:46 ` jakub at gcc dot gnu dot org
2007-06-25 22:33 ` pluto at agmk dot net

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).