public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/22448] New: ICE on dereferencing a label in an asm statement
@ 2005-07-13  2:24 mrd at alkemio dot org
  2005-07-13  2:26 ` [Bug middle-end/22448] [4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: mrd at alkemio dot org @ 2005-07-13  2:24 UTC (permalink / raw)
  To: gcc-bugs

With gcc 4.0.1, compiling the following results in an ICE:

void
foo ()
{
label: asm ("" : : "g" (*&&label));
}

Admittedly I don't expect it to do anything useful, but I was told in #gcc that
I should report the ICE anyways.  (For what it's worth, this same code snippet
compiles without error in gcc 3.3 and 3.4.)

-- 
           Summary: ICE on dereferencing a label in an asm statement
           Product: gcc
           Version: 4.0.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: mrd at alkemio dot org
                CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: i386-pc-linux-gnu


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


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

* [Bug middle-end/22448] [4.0/4.1 Regression] ICE on dereferencing a label in an asm statement
  2005-07-13  2:24 [Bug c/22448] New: ICE on dereferencing a label in an asm statement mrd at alkemio dot org
@ 2005-07-13  2:26 ` pinskia at gcc dot gnu dot org
  2005-07-28 16:36 ` pinskia at gcc dot gnu dot org
  2005-07-28 16:40 ` [Bug middle-end/22448] " pinskia at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-13  2:26 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-07-13 02:24 -------
Confirmed, a regression from 3.4.0.
(In reply to comment #0)
> Admittedly I don't expect it to do anything useful, but I was told in #gcc that
> I should report the ICE anyways.

Yes by me :).

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
          Component|c                           |middle-end
     Ever Confirmed|                            |1
      Known to fail|                            |4.0.0 4.1.0
      Known to work|                            |3.4.0
   Last reconfirmed|0000-00-00 00:00:00         |2005-07-13 02:24:31
               date|                            |
            Summary|ICE on dereferencing a label|[4.0/4.1 Regression] ICE on
                   |in an asm statement         |dereferencing a label in an
                   |                            |asm statement
   Target Milestone|---                         |4.0.2


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


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

* [Bug middle-end/22448] [4.0/4.1 Regression] ICE on dereferencing a label in an asm statement
  2005-07-13  2:24 [Bug c/22448] New: ICE on dereferencing a label in an asm statement mrd at alkemio dot org
  2005-07-13  2:26 ` [Bug middle-end/22448] [4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
@ 2005-07-28 16:36 ` pinskia at gcc dot gnu dot org
  2005-07-28 16:40 ` [Bug middle-end/22448] " pinskia at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-28 16:36 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-07-28 16:35 -------
*** Bug 23110 has been marked as a duplicate of this bug. ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |76306 dot 1226 at compuserve
                   |                            |dot com


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


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

* [Bug middle-end/22448] ICE on dereferencing a label in an asm statement
  2005-07-13  2:24 [Bug c/22448] New: ICE on dereferencing a label in an asm statement mrd at alkemio dot org
  2005-07-13  2:26 ` [Bug middle-end/22448] [4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
  2005-07-28 16:36 ` pinskia at gcc dot gnu dot org
@ 2005-07-28 16:40 ` pinskia at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-28 16:40 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-07-28 16:38 -------
Turns out this is not really a regression.  If you change g to r, it fails from 2.95.3 and up.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|4.0.0 4.1.0                 |2.95 3.2 3.3.3 3.4.0 4.0.0
                   |                            |4.1.0
      Known to work|3.4.0                       |
            Summary|[4.0/4.1 Regression] ICE on |ICE on dereferencing a label
                   |dereferencing a label in an |in an asm statement
                   |asm statement               |
   Target Milestone|4.0.2                       |---


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


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

end of thread, other threads:[~2005-07-28 16:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-13  2:24 [Bug c/22448] New: ICE on dereferencing a label in an asm statement mrd at alkemio dot org
2005-07-13  2:26 ` [Bug middle-end/22448] [4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
2005-07-28 16:36 ` pinskia at gcc dot gnu dot org
2005-07-28 16:40 ` [Bug middle-end/22448] " pinskia 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).