public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/33316] New: [4.2.1 regression] ICE on valid variable-length automatic array in const struct
@ 2007-09-05 20:14 radford at blackbean dot org
2007-09-05 20:21 ` [Bug debug/33316] [4.2/4.3 " pinskia at gcc dot gnu dot org
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: radford at blackbean dot org @ 2007-09-05 20:14 UTC (permalink / raw)
To: gcc-bugs
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1052 bytes --]
The following gives an ICE when compiled with -g. Removing -g, removing the
const or making data[] a constant size will allow it to be compiled.
int f(void *p, int length)
{
const struct {
int data[length];
} *array = p;
return array[0].data[0];
}
$ gcc -g -c t.c
t.c: In function f:
t.c:8: internal compiler error: Segmentation fault
$ gcc -v
Using built-in specs.
Target: x86_64-unknown-linux-gnu
Configured with: ./configure --enable-languages=c
Thread model: posix
gcc version 4.2.1
--
Summary: [4.2.1 regression] ICE on valid variable-length
automatic array in const struct
Product: gcc
Version: 4.2.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: radford at blackbean dot org
GCC build triplet: x86_64-linux-gnu
GCC host triplet: x86_64-linux-gnu
GCC target triplet: x86_64-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33316
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug debug/33316] [4.2/4.3 regression] ICE on valid variable-length automatic array in const struct
2007-09-05 20:14 [Bug c/33316] New: [4.2.1 regression] ICE on valid variable-length automatic array in const struct radford at blackbean dot org
@ 2007-09-05 20:21 ` pinskia at gcc dot gnu dot org
2007-09-05 20:24 ` rguenth at gcc dot gnu dot org
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-09-05 20:21 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2007-09-05 20:20 -------
Confirmed.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
GCC build triplet|x86_64-linux-gnu |
GCC host triplet|x86_64-linux-gnu |
GCC target triplet|x86_64-linux-gnu |dwarf2
Keywords| |ice-on-valid-code
Known to fail| |4.2.0 4.3.0
Known to work| |4.1.1
Last reconfirmed|0000-00-00 00:00:00 |2007-09-05 20:20:59
date| |
Summary|[4.2 regression] ICE on |[4.2/4.3 regression] ICE on
|valid variable-length |valid variable-length
|automatic array in const |automatic array in const
|struct |struct
Target Milestone|--- |4.2.2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33316
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug debug/33316] [4.2/4.3 regression] ICE on valid variable-length automatic array in const struct
2007-09-05 20:14 [Bug c/33316] New: [4.2.1 regression] ICE on valid variable-length automatic array in const struct radford at blackbean dot org
2007-09-05 20:21 ` [Bug debug/33316] [4.2/4.3 " pinskia at gcc dot gnu dot org
@ 2007-09-05 20:24 ` rguenth at gcc dot gnu dot org
2007-09-05 20:26 ` pinskia 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-09-05 20:24 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from rguenth at gcc dot gnu dot org 2007-09-05 20:24 -------
This looks similar to PR29970.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33316
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug debug/33316] [4.2/4.3 regression] ICE on valid variable-length automatic array in const struct
2007-09-05 20:14 [Bug c/33316] New: [4.2.1 regression] ICE on valid variable-length automatic array in const struct radford at blackbean dot org
2007-09-05 20:21 ` [Bug debug/33316] [4.2/4.3 " pinskia at gcc dot gnu dot org
2007-09-05 20:24 ` rguenth at gcc dot gnu dot org
@ 2007-09-05 20:26 ` pinskia at gcc dot gnu dot org
2007-09-20 21:28 ` jakub at gcc dot gnu dot org
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-09-05 20:26 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from pinskia at gcc dot gnu dot org 2007-09-05 20:26 -------
(In reply to comment #2)
> This looks similar to PR29970.
It is unrelated. There is no leak of a type here. The issue is we are looking
at the type's name which does not exist or something like that.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33316
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug debug/33316] [4.2/4.3 regression] ICE on valid variable-length automatic array in const struct
2007-09-05 20:14 [Bug c/33316] New: [4.2.1 regression] ICE on valid variable-length automatic array in const struct radford at blackbean dot org
` (2 preceding siblings ...)
2007-09-05 20:26 ` pinskia at gcc dot gnu dot org
@ 2007-09-20 21:28 ` jakub at gcc dot gnu dot org
2007-09-24 9:17 ` 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-09-20 21:28 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from jakub at gcc dot gnu dot org 2007-09-20 21:27 -------
Subject: Bug 33316
Author: jakub
Date: Thu Sep 20 21:27:39 2007
New Revision: 128631
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=128631
Log:
PR debug/33316
* dwarf2out.c (modified_type_die): Handle TYPE_DECL with NULL
DECL_NAME.
* dbxout.c (dbxout_type): Likewise.
* gcc.dg/debug/pr33316.c: New test.
Added:
trunk/gcc/testsuite/gcc.dg/debug/pr33316.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/dbxout.c
trunk/gcc/dwarf2out.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33316
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug debug/33316] [4.2/4.3 regression] ICE on valid variable-length automatic array in const struct
2007-09-05 20:14 [Bug c/33316] New: [4.2.1 regression] ICE on valid variable-length automatic array in const struct radford at blackbean dot org
` (3 preceding siblings ...)
2007-09-20 21:28 ` jakub at gcc dot gnu dot org
@ 2007-09-24 9:17 ` jakub at gcc dot gnu dot org
2007-09-24 9:18 ` jakub at gcc dot gnu dot org
2007-09-28 4:03 ` mmitchel at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu dot org @ 2007-09-24 9:17 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from jakub at gcc dot gnu dot org 2007-09-24 09:17 -------
Subject: Bug 33316
Author: jakub
Date: Mon Sep 24 09:17:10 2007
New Revision: 128709
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=128709
Log:
PR debug/33316
* dwarf2out.c (modified_type_die): Handle TYPE_DECL with NULL
DECL_NAME.
* dbxout.c (dbxout_type): Likewise.
* gcc.dg/debug/pr33316.c: New test.
Added:
branches/gcc-4_2-branch/gcc/testsuite/gcc.dg/debug/pr33316.c
Modified:
branches/gcc-4_2-branch/gcc/ChangeLog
branches/gcc-4_2-branch/gcc/dbxout.c
branches/gcc-4_2-branch/gcc/dwarf2out.c
branches/gcc-4_2-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33316
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug debug/33316] [4.2/4.3 regression] ICE on valid variable-length automatic array in const struct
2007-09-05 20:14 [Bug c/33316] New: [4.2.1 regression] ICE on valid variable-length automatic array in const struct radford at blackbean dot org
` (4 preceding siblings ...)
2007-09-24 9:17 ` jakub at gcc dot gnu dot org
@ 2007-09-24 9:18 ` jakub at gcc dot gnu dot org
2007-09-28 4:03 ` mmitchel at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu dot org @ 2007-09-24 9:18 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from jakub at gcc dot gnu dot org 2007-09-24 09:18 -------
Fixed.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33316
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug debug/33316] [4.2/4.3 regression] ICE on valid variable-length automatic array in const struct
2007-09-05 20:14 [Bug c/33316] New: [4.2.1 regression] ICE on valid variable-length automatic array in const struct radford at blackbean dot org
` (5 preceding siblings ...)
2007-09-24 9:18 ` jakub at gcc dot gnu dot org
@ 2007-09-28 4:03 ` mmitchel at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2007-09-28 4:03 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from mmitchel at gcc dot gnu dot org 2007-09-28 04:03 -------
Jakub checked in a patch for this, but this bug was never closed.
--
mmitchel at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33316
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2007-09-28 4:03 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-09-05 20:14 [Bug c/33316] New: [4.2.1 regression] ICE on valid variable-length automatic array in const struct radford at blackbean dot org
2007-09-05 20:21 ` [Bug debug/33316] [4.2/4.3 " pinskia at gcc dot gnu dot org
2007-09-05 20:24 ` rguenth at gcc dot gnu dot org
2007-09-05 20:26 ` pinskia at gcc dot gnu dot org
2007-09-20 21:28 ` jakub at gcc dot gnu dot org
2007-09-24 9:17 ` jakub at gcc dot gnu dot org
2007-09-24 9:18 ` jakub at gcc dot gnu dot org
2007-09-28 4:03 ` mmitchel 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).