public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug debug/28692] New: ICE in rtl_for_decl_init, at dwarf2out.c
@ 2006-08-11 7:58 micis at gmx dot de
2006-08-11 8:05 ` [Bug debug/28692] [4.2 Regression] " pinskia at gcc dot gnu dot org
` (10 more replies)
0 siblings, 11 replies; 12+ messages in thread
From: micis at gmx dot de @ 2006-08-11 7:58 UTC (permalink / raw)
To: gcc-bugs
When I compile the small program I get an ICE.
By checking with older compiler versions I found this bug was introduced
between gcc-4.2-20060325 and gcc-4.2-20060401.
Michael Cieslinski
dwarf2out_bug.c:
typedef float FloatVect __attribute__((__vector_size__(16)));
static FloatVect Foo = { 250000000.0, 0.0, 0.0, 0.0};
g++42v -g dwarf2out_bug.c
dwarf2out_bug.c:1: internal compiler error: in rtl_for_decl_init, at
dwarf2out.c:9959
Please submit a full bug report, with preprocessed source if appropriate.
g++42v -v
Using built-in specs.
Target: x86_64-unknown-linux-gnu
Configured with: ../gcc-4.2-20060729/configure --prefix=/usr/local/gcc42v
--program-suffix=42v --with-arch=opteron --enable-languages=c,c++
--enable-__cxa_atexit --disable-nls --enable-threads=posix
--disable-multilib --enable-checking
Thread model: posix
gcc version 4.2.0 20060729 (experimental)
--
Summary: ICE in rtl_for_decl_init, at dwarf2out.c
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: debug
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: micis at gmx dot de
GCC build triplet: x86_64-unknown-linux-gnu
GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28692
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug debug/28692] [4.2 Regression] ICE in rtl_for_decl_init, at dwarf2out.c
2006-08-11 7:58 [Bug debug/28692] New: ICE in rtl_for_decl_init, at dwarf2out.c micis at gmx dot de
@ 2006-08-11 8:05 ` pinskia at gcc dot gnu dot org
2006-08-11 19:27 ` janis at gcc dot gnu dot org
` (9 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-08-11 8:05 UTC (permalink / raw)
To: gcc-bugs
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|ICE in rtl_for_decl_init, at|[4.2 Regression] ICE in
|dwarf2out.c |rtl_for_decl_init, at
| |dwarf2out.c
Target Milestone|--- |4.2.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28692
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug debug/28692] [4.2 Regression] ICE in rtl_for_decl_init, at dwarf2out.c
2006-08-11 7:58 [Bug debug/28692] New: ICE in rtl_for_decl_init, at dwarf2out.c micis at gmx dot de
2006-08-11 8:05 ` [Bug debug/28692] [4.2 Regression] " pinskia at gcc dot gnu dot org
@ 2006-08-11 19:27 ` janis at gcc dot gnu dot org
2006-08-11 19:30 ` pinskia at gcc dot gnu dot org
` (8 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: janis at gcc dot gnu dot org @ 2006-08-11 19:27 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from janis at gcc dot gnu dot org 2006-08-11 19:27 -------
This problem also affects powerpc-linux, where a regression hunt identified the
following patch:
http://gcc.gnu.org/viewcvs?view=rev&rev=112408
r112408 | geoffk | 2006-03-27 06:09:48 +0000 (Mon, 27 Mar 2006)
--
janis at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |geoffk at gcc dot gnu dot
| |org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28692
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug debug/28692] [4.2 Regression] ICE in rtl_for_decl_init, at dwarf2out.c
2006-08-11 7:58 [Bug debug/28692] New: ICE in rtl_for_decl_init, at dwarf2out.c micis at gmx dot de
2006-08-11 8:05 ` [Bug debug/28692] [4.2 Regression] " pinskia at gcc dot gnu dot org
2006-08-11 19:27 ` janis at gcc dot gnu dot org
@ 2006-08-11 19:30 ` pinskia at gcc dot gnu dot org
2006-08-20 22:36 ` mmitchel at gcc dot gnu dot org
` (7 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-08-11 19:30 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from pinskia at gcc dot gnu dot org 2006-08-11 19:30 -------
Confirmed.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |blocker
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Keywords| |ice-on-valid-code
Last reconfirmed|0000-00-00 00:00:00 |2006-08-11 19:30:06
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28692
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug debug/28692] [4.2 Regression] ICE in rtl_for_decl_init, at dwarf2out.c
2006-08-11 7:58 [Bug debug/28692] New: ICE in rtl_for_decl_init, at dwarf2out.c micis at gmx dot de
` (2 preceding siblings ...)
2006-08-11 19:30 ` pinskia at gcc dot gnu dot org
@ 2006-08-20 22:36 ` mmitchel at gcc dot gnu dot org
2006-08-20 23:21 ` geoffk at gcc dot gnu dot org
` (6 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-08-20 22:36 UTC (permalink / raw)
To: gcc-bugs
--
mmitchel at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28692
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug debug/28692] [4.2 Regression] ICE in rtl_for_decl_init, at dwarf2out.c
2006-08-11 7:58 [Bug debug/28692] New: ICE in rtl_for_decl_init, at dwarf2out.c micis at gmx dot de
` (3 preceding siblings ...)
2006-08-20 22:36 ` mmitchel at gcc dot gnu dot org
@ 2006-08-20 23:21 ` geoffk at gcc dot gnu dot org
2006-08-21 4:32 ` pinskia at gcc dot gnu dot org
` (5 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: geoffk at gcc dot gnu dot org @ 2006-08-20 23:21 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from geoffk at gcc dot gnu dot org 2006-08-20 23:21 -------
As a workaround, I believe you can simply delete the gcc_assert. This will
mean, though, that either you don't get debug information for Foo, or you will
get debug information but saying that Foo lives in the constant pool.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28692
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug debug/28692] [4.2 Regression] ICE in rtl_for_decl_init, at dwarf2out.c
2006-08-11 7:58 [Bug debug/28692] New: ICE in rtl_for_decl_init, at dwarf2out.c micis at gmx dot de
` (4 preceding siblings ...)
2006-08-20 23:21 ` geoffk at gcc dot gnu dot org
@ 2006-08-21 4:32 ` pinskia at gcc dot gnu dot org
2006-08-21 22:06 ` geoffk at geoffk dot org
` (4 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-08-21 4:32 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from pinskia at gcc dot gnu dot org 2006-08-21 04:32 -------
Geoff,
Do you have a testcase where you get better debug info from your patch?
http://gcc.gnu.org/ml/gcc-patches/2006-03/msg01567.html
Thanks,
Andrew Pinski
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28692
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug debug/28692] [4.2 Regression] ICE in rtl_for_decl_init, at dwarf2out.c
2006-08-11 7:58 [Bug debug/28692] New: ICE in rtl_for_decl_init, at dwarf2out.c micis at gmx dot de
` (5 preceding siblings ...)
2006-08-21 4:32 ` pinskia at gcc dot gnu dot org
@ 2006-08-21 22:06 ` geoffk at geoffk dot org
2006-08-21 22:08 ` geoffk at gcc dot gnu dot org
` (3 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: geoffk at geoffk dot org @ 2006-08-21 22:06 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from geoffk at geoffk dot org 2006-08-21 22:06 -------
Subject: Re: [4.2 Regression] ICE in rtl_for_decl_init, at dwarf2out.c
On 20/08/2006, at 9:32 PM, pinskia at gcc dot gnu dot org wrote:
> ------- Comment #4 from pinskia at gcc dot gnu dot org 2006-08-21
> 04:32 -------
> Geoff,
> Do you have a testcase where you get better debug info from your
> patch?
> http://gcc.gnu.org/ml/gcc-patches/2006-03/msg01567.html
It took me a while to find it, but here's an example:
extern void x();
static void (*f)() = x;
However, this patch is clearly not behaving the way I expected. I
can reproduce the reported problem on powerpc-darwin when using 'gcc -
O -gdwarf-2'. I'll work on a fix.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28692
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug debug/28692] [4.2 Regression] ICE in rtl_for_decl_init, at dwarf2out.c
2006-08-11 7:58 [Bug debug/28692] New: ICE in rtl_for_decl_init, at dwarf2out.c micis at gmx dot de
` (6 preceding siblings ...)
2006-08-21 22:06 ` geoffk at geoffk dot org
@ 2006-08-21 22:08 ` geoffk at gcc dot gnu dot org
2006-08-22 1:20 ` geoffk at gcc dot gnu dot org
` (2 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: geoffk at gcc dot gnu dot org @ 2006-08-21 22:08 UTC (permalink / raw)
To: gcc-bugs
--
geoffk at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |geoffk at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
Last reconfirmed|2006-08-11 19:30:06 |2006-08-21 22:08:14
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28692
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug debug/28692] [4.2 Regression] ICE in rtl_for_decl_init, at dwarf2out.c
2006-08-11 7:58 [Bug debug/28692] New: ICE in rtl_for_decl_init, at dwarf2out.c micis at gmx dot de
` (7 preceding siblings ...)
2006-08-21 22:08 ` geoffk at gcc dot gnu dot org
@ 2006-08-22 1:20 ` geoffk at gcc dot gnu dot org
2006-08-22 19:16 ` geoffk at gcc dot gnu dot org
2006-08-22 19:17 ` geoffk at gcc dot gnu dot org
10 siblings, 0 replies; 12+ messages in thread
From: geoffk at gcc dot gnu dot org @ 2006-08-22 1:20 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from geoffk at gcc dot gnu dot org 2006-08-22 01:20 -------
It turns out that if you compile this with 'gcc -mcpu=G4 -O -gdwarf-2' on
powerpc-darwin, this testcase works fine, but if you do it with '-mcpu=G3', it
fails; that is, it fails when V4SFmode is not supported by the target. The
testcase does correctly generate a DW_AT_const_value:
.byte 0x7 ; uleb128 0x7; (DIE (0xa0) DW_TAG_variable)
.ascii "Foo\0" ; DW_AT_name
.byte 0x1 ; DW_AT_decl_file
.byte 0x2 ; DW_AT_decl_line
.long 0x72 ; DW_AT_type
.byte 0x10 ; DW_AT_const_value
.long 0x4d6e6b28 ; fp or vector constant word 0
.long 0x0 ; fp or vector constant word 1
.long 0x0 ; fp or vector constant word 2
.long 0x0 ; fp or vector constant word 3
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28692
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug debug/28692] [4.2 Regression] ICE in rtl_for_decl_init, at dwarf2out.c
2006-08-11 7:58 [Bug debug/28692] New: ICE in rtl_for_decl_init, at dwarf2out.c micis at gmx dot de
` (8 preceding siblings ...)
2006-08-22 1:20 ` geoffk at gcc dot gnu dot org
@ 2006-08-22 19:16 ` geoffk at gcc dot gnu dot org
2006-08-22 19:17 ` geoffk at gcc dot gnu dot org
10 siblings, 0 replies; 12+ messages in thread
From: geoffk at gcc dot gnu dot org @ 2006-08-22 19:16 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from geoffk at gcc dot gnu dot org 2006-08-22 19:16 -------
Subject: Bug 28692
Author: geoffk
Date: Tue Aug 22 19:16:03 2006
New Revision: 116331
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=116331
Log:
Index: gcc/ChangeLog
2006-08-21 Geoffrey Keating <geoffk@apple.com>
PR debug/28692
* dwarf2out.c (rtl_for_decl_init): Don't try to create RTL for
complex values, nor for generic vector values.
Index: gcc/testsuite/ChangeLog
2006-08-21 Geoffrey Keating <geoffk@apple.com>
PR debug/28692
* gcc.dg/debug/const-1.c: New.
* gcc.dg/debug/const-2.c: New.
* gcc.dg/debug/dwarf2/const-1.c: New.
* gcc.dg/debug/dwarf2/const-2.c: New.
* gcc.dg/debug/dwarf2/const-2b.c: New.
Added:
trunk/gcc/testsuite/gcc.dg/debug/const-1.c
trunk/gcc/testsuite/gcc.dg/debug/const-2.c
trunk/gcc/testsuite/gcc.dg/debug/dwarf2/const-1.c
trunk/gcc/testsuite/gcc.dg/debug/dwarf2/const-2.c
trunk/gcc/testsuite/gcc.dg/debug/dwarf2/const-2b.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/dwarf2out.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28692
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug debug/28692] [4.2 Regression] ICE in rtl_for_decl_init, at dwarf2out.c
2006-08-11 7:58 [Bug debug/28692] New: ICE in rtl_for_decl_init, at dwarf2out.c micis at gmx dot de
` (9 preceding siblings ...)
2006-08-22 19:16 ` geoffk at gcc dot gnu dot org
@ 2006-08-22 19:17 ` geoffk at gcc dot gnu dot org
10 siblings, 0 replies; 12+ messages in thread
From: geoffk at gcc dot gnu dot org @ 2006-08-22 19:17 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from geoffk at gcc dot gnu dot org 2006-08-22 19:17 -------
Patch above should have fixed this.
--
geoffk at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28692
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2006-08-22 19:17 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-08-11 7:58 [Bug debug/28692] New: ICE in rtl_for_decl_init, at dwarf2out.c micis at gmx dot de
2006-08-11 8:05 ` [Bug debug/28692] [4.2 Regression] " pinskia at gcc dot gnu dot org
2006-08-11 19:27 ` janis at gcc dot gnu dot org
2006-08-11 19:30 ` pinskia at gcc dot gnu dot org
2006-08-20 22:36 ` mmitchel at gcc dot gnu dot org
2006-08-20 23:21 ` geoffk at gcc dot gnu dot org
2006-08-21 4:32 ` pinskia at gcc dot gnu dot org
2006-08-21 22:06 ` geoffk at geoffk dot org
2006-08-21 22:08 ` geoffk at gcc dot gnu dot org
2006-08-22 1:20 ` geoffk at gcc dot gnu dot org
2006-08-22 19:16 ` geoffk at gcc dot gnu dot org
2006-08-22 19:17 ` geoffk 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).