public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug debug/30898]  New: [4.3 regression] ICE with anonymous union and
@ 2007-02-20 22:28 reichelt at gcc dot gnu dot org
  2007-02-20 22:29 ` [Bug debug/30898] [4.3 regression] ICE with anonymous union and -g 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-02-20 22:28 UTC (permalink / raw)
  To: gcc-bugs

The following code snippet triggers an ICE on mainline when compiled with
"g++ -O -g":

===================
double foo()
{
  union
  {
    int i;
    double d;
  };

  i = 0;
  return d;
}
===================

bug.cc: In function 'double foo()':
bug.cc:11: internal compiler error: in mem_loc_descriptor, at dwarf2out.c:9010
Please submit a full bug report, [etc.]


-- 
           Summary: [4.3 regression] ICE with anonymous union and
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code, monitored
          Severity: normal
          Priority: P3
         Component: debug
        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=30898


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

* [Bug debug/30898] [4.3 regression] ICE with anonymous union and -g
  2007-02-20 22:28 [Bug debug/30898] New: [4.3 regression] ICE with anonymous union and reichelt at gcc dot gnu dot org
@ 2007-02-20 22:29 ` reichelt at gcc dot gnu dot org
  2007-02-21 11:02 ` rguenth 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-02-20 22:29 UTC (permalink / raw)
  To: gcc-bugs



-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[4.3 regression] ICE with   |[4.3 regression] ICE with
                   |anonymous union and         |anonymous union and -g
   Target Milestone|---                         |4.3.0


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


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

* [Bug debug/30898] [4.3 regression] ICE with anonymous union and -g
  2007-02-20 22:28 [Bug debug/30898] New: [4.3 regression] ICE with anonymous union and reichelt at gcc dot gnu dot org
  2007-02-20 22:29 ` [Bug debug/30898] [4.3 regression] ICE with anonymous union and -g reichelt at gcc dot gnu dot org
@ 2007-02-21 11:02 ` rguenth at gcc dot gnu dot org
  2007-02-21 11:03 ` rguenth at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2007-02-21 11:02 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from rguenth at gcc dot gnu dot org  2007-02-21 11:02 -------
Works for me - maybe related to the fixed PR29558.


-- 


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


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

* [Bug debug/30898] [4.3 regression] ICE with anonymous union and -g
  2007-02-20 22:28 [Bug debug/30898] New: [4.3 regression] ICE with anonymous union and reichelt at gcc dot gnu dot org
  2007-02-20 22:29 ` [Bug debug/30898] [4.3 regression] ICE with anonymous union and -g reichelt at gcc dot gnu dot org
  2007-02-21 11:02 ` rguenth at gcc dot gnu dot org
@ 2007-02-21 11:03 ` rguenth at gcc dot gnu dot org
  2007-02-21 11:06 ` rguenth at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2007-02-21 11:03 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from rguenth at gcc dot gnu dot org  2007-02-21 11:03 -------
Confirmed.  32bits only.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
 GCC target triplet|                            |i?86-*-*
      Known to work|                            |4.2.0
   Last reconfirmed|0000-00-00 00:00:00         |2007-02-21 11:03:36
               date|                            |


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


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

* [Bug debug/30898] [4.3 regression] ICE with anonymous union and -g
  2007-02-20 22:28 [Bug debug/30898] New: [4.3 regression] ICE with anonymous union and reichelt at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2007-02-21 11:03 ` rguenth at gcc dot gnu dot org
@ 2007-02-21 11:06 ` rguenth at gcc dot gnu dot org
  2007-02-21 16:12 ` ian at airs dot com
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2007-02-21 11:06 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from rguenth at gcc dot gnu dot org  2007-02-21 11:06 -------
Another subreg lowering issue.  We have

#1  0x000000000078510e in mem_loc_descriptor (rtl=0x2b5aa76fc0c0, mode=DImode)
    at /space/rguenther/src/svn/trunk/gcc/dwarf2out.c:9010
9010          gcc_unreachable ();
(gdb) call debug_rtx (rtl)
(concatn/v:DI [
        (reg:SI 61 [ D.2102 ])
        (reg:SI 0 ax [orig:62 D.2102+4 ] [62])
    ])


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ian at gcc dot gnu dot org


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


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

* [Bug debug/30898] [4.3 regression] ICE with anonymous union and -g
  2007-02-20 22:28 [Bug debug/30898] New: [4.3 regression] ICE with anonymous union and reichelt at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2007-02-21 11:06 ` rguenth at gcc dot gnu dot org
@ 2007-02-21 16:12 ` ian at airs dot com
  2007-02-22 14:55 ` ian at gcc dot gnu dot org
  2007-02-22 16:00 ` ian at airs dot com
  6 siblings, 0 replies; 8+ messages in thread
From: ian at airs dot com @ 2007-02-21 16:12 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from ian at airs dot com  2007-02-21 16:12 -------
I'm testing a patch.


-- 

ian at airs dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |ian at airs dot com
                   |dot org                     |
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2007-02-21 11:03:36         |2007-02-21 16:12:07
               date|                            |


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


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

* [Bug debug/30898] [4.3 regression] ICE with anonymous union and -g
  2007-02-20 22:28 [Bug debug/30898] New: [4.3 regression] ICE with anonymous union and reichelt at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2007-02-21 16:12 ` ian at airs dot com
@ 2007-02-22 14:55 ` ian at gcc dot gnu dot org
  2007-02-22 16:00 ` ian at airs dot com
  6 siblings, 0 replies; 8+ messages in thread
From: ian at gcc dot gnu dot org @ 2007-02-22 14:55 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from ian at gcc dot gnu dot org  2007-02-22 14:55 -------
Subject: Bug 30898

Author: ian
Date: Thu Feb 22 14:55:09 2007
New Revision: 122228

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=122228
Log:
./:
        PR debug/30898
        * dwarf2out.c (concatn_mem_loc_descriptor): New static function.
        (mem_loc_descriptor): Call it.
testsuite/:
        * g++.dg/debug/pr30898.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/debug/pr30898.C
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/dwarf2out.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug debug/30898] [4.3 regression] ICE with anonymous union and -g
  2007-02-20 22:28 [Bug debug/30898] New: [4.3 regression] ICE with anonymous union and reichelt at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2007-02-22 14:55 ` ian at gcc dot gnu dot org
@ 2007-02-22 16:00 ` ian at airs dot com
  6 siblings, 0 replies; 8+ messages in thread
From: ian at airs dot com @ 2007-02-22 16:00 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from ian at airs dot com  2007-02-22 16:00 -------
Fixed.


-- 

ian at airs dot com changed:

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


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


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

end of thread, other threads:[~2007-02-22 16:00 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-20 22:28 [Bug debug/30898] New: [4.3 regression] ICE with anonymous union and reichelt at gcc dot gnu dot org
2007-02-20 22:29 ` [Bug debug/30898] [4.3 regression] ICE with anonymous union and -g reichelt at gcc dot gnu dot org
2007-02-21 11:02 ` rguenth at gcc dot gnu dot org
2007-02-21 11:03 ` rguenth at gcc dot gnu dot org
2007-02-21 11:06 ` rguenth at gcc dot gnu dot org
2007-02-21 16:12 ` ian at airs dot com
2007-02-22 14:55 ` ian at gcc dot gnu dot org
2007-02-22 16:00 ` ian at airs dot com

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