public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/11267] New: [tree-ssa] ICE with variable-sized arrays
@ 2003-06-20 17:23 reichelt at gcc dot gnu dot org
2003-06-20 17:23 ` [Bug c++/11267] " reichelt at gcc dot gnu dot org
` (9 more replies)
0 siblings, 10 replies; 11+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2003-06-20 17:23 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11267
Summary: [tree-ssa] ICE with variable-sized arrays
Product: gcc
Version: unknown
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P1
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: reichelt@gcc.gnu.org
CC: dnovillo@gcc.gnu.org,gcc-bugs@gcc.gnu.org
The following code crashes tree-ssa (20030620), just compile with "g++ -c":
-------------------------------------------------------------------------------
class A
{
A( int );
};
A::A ( int i )
{
int ar[1][i];
ar[0][0] = 0;
}
-------------------------------------------------------------------------------
The error message is:
bug.cc: In constructor `A::A(int)':
bug.cc:10: internal compiler error: in make_decl_rtl, at varasm.c:801
Please submit a full bug report, [etc.]
Probably the same problem shows up with the following C-code snippet
(just compile with "gcc -c"):
-------------------------------------------------------------------------------
void foo(int i)
{
int f[1][i];
static void bar() { f[0]; }
}
-------------------------------------------------------------------------------
Here, the error message is:
bug.c: In function `foo':
bug.c:3: internal compiler error: in make_decl_rtl, at varasm.c:801
Please submit a full bug report, [etc.]
Since this is a regression on mainline, I set the priority to "P1".
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/11267] [tree-ssa] ICE with variable-sized arrays
2003-06-20 17:23 [Bug c++/11267] New: [tree-ssa] ICE with variable-sized arrays reichelt at gcc dot gnu dot org
@ 2003-06-20 17:23 ` reichelt at gcc dot gnu dot org
2003-06-21 1:31 ` bangerth at dealii dot org
` (8 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2003-06-20 17:23 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11267
------- Additional Comments From reichelt at gcc dot gnu dot org 2003-06-20 17:20 -------
Oops, the last sentence is wrong.
It's a regression *w.r.t.* mainline and not *on* mainline.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/11267] [tree-ssa] ICE with variable-sized arrays
2003-06-20 17:23 [Bug c++/11267] New: [tree-ssa] ICE with variable-sized arrays reichelt at gcc dot gnu dot org
2003-06-20 17:23 ` [Bug c++/11267] " reichelt at gcc dot gnu dot org
@ 2003-06-21 1:31 ` bangerth at dealii dot org
2003-06-21 2:24 ` dhazeghi at yahoo dot com
` (7 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: bangerth at dealii dot org @ 2003-06-21 1:31 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11267
bangerth at dealii dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|3.4 |tree-ssa
------- Additional Comments From bangerth at dealii dot org 2003-06-21 01:28 -------
Bulk switch target milestone for all PRs with [tree-ssa] in the summary to
have milestone=tree-ssa.
W.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/11267] [tree-ssa] ICE with variable-sized arrays
2003-06-20 17:23 [Bug c++/11267] New: [tree-ssa] ICE with variable-sized arrays reichelt at gcc dot gnu dot org
2003-06-20 17:23 ` [Bug c++/11267] " reichelt at gcc dot gnu dot org
2003-06-21 1:31 ` bangerth at dealii dot org
@ 2003-06-21 2:24 ` dhazeghi at yahoo dot com
2003-06-23 0:37 ` pinskia at physics dot uc dot edu
` (6 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: dhazeghi at yahoo dot com @ 2003-06-21 2:24 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11267
dhazeghi at yahoo dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Version|unknown |tree-ssa
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/11267] [tree-ssa] ICE with variable-sized arrays
2003-06-20 17:23 [Bug c++/11267] New: [tree-ssa] ICE with variable-sized arrays reichelt at gcc dot gnu dot org
` (2 preceding siblings ...)
2003-06-21 2:24 ` dhazeghi at yahoo dot com
@ 2003-06-23 0:37 ` pinskia at physics dot uc dot edu
2003-08-02 4:00 ` [Bug c/11267] " pinskia at physics dot uc dot edu
` (5 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at physics dot uc dot edu @ 2003-06-23 0:37 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11267
pinskia at physics dot uc dot edu changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2003-06-23 00:37:39
date| |
------- Additional Comments From pinskia at physics dot uc dot edu 2003-06-23 00:37 -------
confirmed on tree-ssa (20030620), the problem is something is not being gimplify.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c/11267] [tree-ssa] ICE with variable-sized arrays
2003-06-20 17:23 [Bug c++/11267] New: [tree-ssa] ICE with variable-sized arrays reichelt at gcc dot gnu dot org
` (3 preceding siblings ...)
2003-06-23 0:37 ` pinskia at physics dot uc dot edu
@ 2003-08-02 4:00 ` pinskia at physics dot uc dot edu
2003-09-04 3:52 ` judd dot jenne at charter dot net
` (4 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at physics dot uc dot edu @ 2003-08-02 4:00 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11267
pinskia at physics dot uc dot edu changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|c++ |c
Last reconfirmed|2003-07-18 20:56:20 |2003-08-02 04:00:22
date| |
------- Additional Comments From pinskia at physics dot uc dot edu 2003-08-02 04:00 -------
The C++ code does not ICE any more but the C code still does.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c/11267] [tree-ssa] ICE with variable-sized arrays
2003-06-20 17:23 [Bug c++/11267] New: [tree-ssa] ICE with variable-sized arrays reichelt at gcc dot gnu dot org
` (4 preceding siblings ...)
2003-08-02 4:00 ` [Bug c/11267] " pinskia at physics dot uc dot edu
@ 2003-09-04 3:52 ` judd dot jenne at charter dot net
2003-11-28 20:55 ` [Bug c/11267] [tree-ssa] ICE with variable-sized arrays and nested functions pinskia at gcc dot gnu dot org
` (3 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: judd dot jenne at charter dot net @ 2003-09-04 3:52 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11267
------- Additional Comments From judd dot jenne at charter dot net 2003-09-04 03:52 -------
I noticed the C test case reports different ICE text 2003-09-03.
Confirmed C++ testcase still suceeds as Andrew noted 2003-08-02.
Reading specs from
/home/judd/gcc-dev/bin-ssa-baseline/lib/gcc/i686-pc-linux-gnu/3.5-tree-ssa/specs
Configured with: /home/judd/gcc-dev/gcc-ssa-baseline/configure
--prefix=/home/judd/gcc-dev/bin-ssa-baseline --enable-languages=c,c++
--enable-checking
Thread model: posix
gcc version 3.5-tree-ssa 20030904 (merged 20030817)
judd@daedolus testcases $ gcc -c tc4.c
tc4.c: In function `foo':
tc4.c:3: internal compiler error: in find_function_data, at function.c:312
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
judd@daedolus testcases $ cat tc4.c
void foo(int i)
{
int f[1][i];
static void bar() { f[0]; }
}
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c/11267] [tree-ssa] ICE with variable-sized arrays and nested functions
2003-06-20 17:23 [Bug c++/11267] New: [tree-ssa] ICE with variable-sized arrays reichelt at gcc dot gnu dot org
` (5 preceding siblings ...)
2003-09-04 3:52 ` judd dot jenne at charter dot net
@ 2003-11-28 20:55 ` pinskia at gcc dot gnu dot org
2004-01-23 2:03 ` rth at gcc dot gnu dot org
` (2 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-11-28 20:55 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-11-28 20:55 -------
*** Bug 13224 has been marked as a duplicate of this bug. ***
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |bbooth at redhat dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11267
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c/11267] [tree-ssa] ICE with variable-sized arrays and nested functions
2003-06-20 17:23 [Bug c++/11267] New: [tree-ssa] ICE with variable-sized arrays reichelt at gcc dot gnu dot org
` (6 preceding siblings ...)
2003-11-28 20:55 ` [Bug c/11267] [tree-ssa] ICE with variable-sized arrays and nested functions pinskia at gcc dot gnu dot org
@ 2004-01-23 2:03 ` rth at gcc dot gnu dot org
2004-01-23 8:49 ` cvs-commit at gcc dot gnu dot org
2004-01-23 8:56 ` rth at gcc dot gnu dot org
9 siblings, 0 replies; 11+ messages in thread
From: rth at gcc dot gnu dot org @ 2004-01-23 2:03 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From rth at gcc dot gnu dot org 2004-01-23 02:03 -------
Patch in progress.
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |rth at gcc dot gnu dot org
|dot org |
Status|NEW |ASSIGNED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11267
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c/11267] [tree-ssa] ICE with variable-sized arrays and nested functions
2003-06-20 17:23 [Bug c++/11267] New: [tree-ssa] ICE with variable-sized arrays reichelt at gcc dot gnu dot org
` (7 preceding siblings ...)
2004-01-23 2:03 ` rth at gcc dot gnu dot org
@ 2004-01-23 8:49 ` cvs-commit at gcc dot gnu dot org
2004-01-23 8:56 ` rth at gcc dot gnu dot org
9 siblings, 0 replies; 11+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-01-23 8:49 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-01-23 08:49 -------
Subject: Bug 11267
CVSROOT: /cvs/gcc
Module name: gcc
Branch: tree-ssa-20020619-branch
Changes by: rth@gcc.gnu.org 2004-01-23 08:49:31
Modified files:
gcc : ChangeLog.tree-ssa Makefile.in c-decl.c
c-simplify.c gimplify.c
Log message:
PR c/11267
* c-decl.c (c_finalize): New.
(finish_function): Use it. Genericize and finalize only non-nested
functions. Register nested functions with cgraph.
* c-simplify.c: Include cgraph.h.
(c_genericize): Genericize nested functions.
* gimplify.c (gimplify_expr): Use DECL_SAVED_INSNS to access
the struct function for the context.
* Makefile.in (c-simplify.o): Update dependencies.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.tree-ssa.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=1.1.2.1124&r2=1.1.2.1125
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/Makefile.in.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=1.903.2.170&r2=1.903.2.171
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-decl.c.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=1.334.2.76&r2=1.334.2.77
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-simplify.c.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=1.1.4.87&r2=1.1.4.88
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/gimplify.c.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=1.1.2.135&r2=1.1.2.136
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11267
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c/11267] [tree-ssa] ICE with variable-sized arrays and nested functions
2003-06-20 17:23 [Bug c++/11267] New: [tree-ssa] ICE with variable-sized arrays reichelt at gcc dot gnu dot org
` (8 preceding siblings ...)
2004-01-23 8:49 ` cvs-commit at gcc dot gnu dot org
@ 2004-01-23 8:56 ` rth at gcc dot gnu dot org
9 siblings, 0 replies; 11+ messages in thread
From: rth at gcc dot gnu dot org @ 2004-01-23 8:56 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From rth at gcc dot gnu dot org 2004-01-23 08:56 -------
http://gcc.gnu.org/ml/gcc-patches/2004-01/msg02422.html
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11267
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2004-01-23 8:56 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-06-20 17:23 [Bug c++/11267] New: [tree-ssa] ICE with variable-sized arrays reichelt at gcc dot gnu dot org
2003-06-20 17:23 ` [Bug c++/11267] " reichelt at gcc dot gnu dot org
2003-06-21 1:31 ` bangerth at dealii dot org
2003-06-21 2:24 ` dhazeghi at yahoo dot com
2003-06-23 0:37 ` pinskia at physics dot uc dot edu
2003-08-02 4:00 ` [Bug c/11267] " pinskia at physics dot uc dot edu
2003-09-04 3:52 ` judd dot jenne at charter dot net
2003-11-28 20:55 ` [Bug c/11267] [tree-ssa] ICE with variable-sized arrays and nested functions pinskia at gcc dot gnu dot org
2004-01-23 2:03 ` rth at gcc dot gnu dot org
2004-01-23 8:49 ` cvs-commit at gcc dot gnu dot org
2004-01-23 8:56 ` rth 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).