public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/26557] New: ICE in simplify_subreg
@ 2006-03-04 15:39 debian-gcc at lists dot debian dot org
2006-03-04 15:47 ` [Bug middle-end/26557] [4.0/4.1/4.2 Regression] " pinskia at gcc dot gnu dot org
` (11 more replies)
0 siblings, 12 replies; 13+ messages in thread
From: debian-gcc at lists dot debian dot org @ 2006-03-04 15:39 UTC (permalink / raw)
To: gcc-bugs
[forwarded from http://bugs.debian.org/349083]
gcc version 4.0.3 20060212 (prerelease) (Debian 4.0.2-9)
falk@gluck:~% cat test.cc
struct sample_struct {
static const int struct_test[];
};
const int sample_struct::struct_test[] = {1};
void g();
void f() {
for(int i = 0; i < 1; ++i){
switch(sample_struct::struct_test[i]) {
case 1: g();
}
}
}
falk@gluck:~% g++ -c test.cc
falk@gluck:~% g++ -c test.cc -O
test.cc: In function 'void f()':
test.cc:11: internal compiler error: in simplify_subreg, at simplify-rtx.c:3744
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
For Debian GNU/Linux specific bug reporting instructions,
see <URL:file:///usr/share/doc/gcc-4.0/README.Bugs>.
No problem with g++-3.3 (GCC) 3.3.6 (Debian 1:3.3.6-12)
--
Summary: ICE in simplify_subreg
Product: gcc
Version: 4.0.3
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: debian-gcc at lists dot debian dot org
GCC build triplet: i486-linux-gnu
GCC host triplet: i486-linux-gnu
GCC target triplet: i486-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26557
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug middle-end/26557] [4.0/4.1/4.2 Regression] ICE in simplify_subreg
2006-03-04 15:39 [Bug c++/26557] New: ICE in simplify_subreg debian-gcc at lists dot debian dot org
@ 2006-03-04 15:47 ` pinskia at gcc dot gnu dot org
2006-03-04 15:49 ` pinskia at gcc dot gnu dot org
` (10 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-03-04 15:47 UTC (permalink / raw)
To: gcc-bugs
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |pinskia at gcc dot gnu dot
| |org
GCC build triplet|i486-linux-gnu |
GCC host triplet|i486-linux-gnu |
GCC target triplet|i486-linux-gnu |
Keywords| |ice-on-valid-code
Summary|ICE in simplify_subreg |[4.0/4.1/4.2 Regression] ICE
| |in simplify_subreg
Target Milestone|--- |4.0.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26557
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug middle-end/26557] [4.0/4.1/4.2 Regression] ICE in simplify_subreg
2006-03-04 15:39 [Bug c++/26557] New: ICE in simplify_subreg debian-gcc at lists dot debian dot org
2006-03-04 15:47 ` [Bug middle-end/26557] [4.0/4.1/4.2 Regression] " pinskia at gcc dot gnu dot org
@ 2006-03-04 15:49 ` pinskia at gcc dot gnu dot org
2006-03-04 15:53 ` pinskia at gcc dot gnu dot org
` (9 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-03-04 15:49 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2006-03-04 15:49 -------
Confirmed, a C testcase:
extern const int struct_test[];
const int struct_test[] = {1};
void g();
void f() {
switch(struct_test[0]) {
case 1: g();
}
}
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2006-03-04 15:49:04
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26557
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug middle-end/26557] [4.0/4.1/4.2 Regression] ICE in simplify_subreg
2006-03-04 15:39 [Bug c++/26557] New: ICE in simplify_subreg debian-gcc at lists dot debian dot org
2006-03-04 15:47 ` [Bug middle-end/26557] [4.0/4.1/4.2 Regression] " pinskia at gcc dot gnu dot org
2006-03-04 15:49 ` pinskia at gcc dot gnu dot org
@ 2006-03-04 15:53 ` pinskia at gcc dot gnu dot org
2006-03-11 3:22 ` mmitchel at gcc dot gnu dot org
` (8 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-03-04 15:53 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from pinskia at gcc dot gnu dot org 2006-03-04 15:53 -------
This is definitely a middle-end issue:
#0 fancy_abort (file=0xce9f78
"/home/pinskia/src/checkin/trunk/gcc/simplify-rtx.c", line=4402,
function=0xed4670 "simplify_subreg") at
/home/pinskia/src/checkin/trunk/gcc/diagnostic.c:642
#1 0x00000000009b119d in simplify_subreg (outermode=VOIDmode,
op=0x2aaaaafb1410,
innermode=DImode, byte=0) at
/home/pinskia/src/checkin/trunk/gcc/simplify-rtx.c:4402
#2 0x00000000009b1de3 in simplify_gen_subreg (outermode=VOIDmode,
op=0x2aaaaafb1410,
innermode=DImode, byte=0) at
/home/pinskia/src/checkin/trunk/gcc/simplify-rtx.c:4679
#3 0x00000000006bf81a in gen_lowpart_common (mode=VOIDmode, x=0x2aaaaafb1410)
at /home/pinskia/src/checkin/trunk/gcc/emit-rtl.c:1158
#4 0x0000000000a366b3 in gen_lowpart_general (mode=VOIDmode, x=0x2aaaaafb1410)
at /home/pinskia/src/checkin/trunk/gcc/rtlhooks.c:43
#5 0x00000000006ed801 in convert_modes (mode=VOIDmode, oldmode=SImode,
x=0x2aaaaafb1410,
unsignedp=0) at /home/pinskia/src/checkin/trunk/gcc/expr.c:822
#6 0x00000000009be5bb in emit_case_nodes (index=0x2aaaaafb1410,
node=0x2aaaab10cf90,
default_label=0x2aaaaafb2910, index_type=0x2aaaaafbb4d0)
at /home/pinskia/src/checkin/trunk/gcc/stmt.c:2949
#7 0x00000000009bd129 in expand_case (exp=0x2aaaaafb24b0)
at /home/pinskia/src/checkin/trunk/gcc/stmt.c:2509
----------
And has nothing to do with the array size not being defined at first.
Further reduced testcase:
const int struct_test[1] = {1};
void g();
void f() {
switch(struct_test[0]) {
case 1: g();
}
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26557
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug middle-end/26557] [4.0/4.1/4.2 Regression] ICE in simplify_subreg
2006-03-04 15:39 [Bug c++/26557] New: ICE in simplify_subreg debian-gcc at lists dot debian dot org
` (2 preceding siblings ...)
2006-03-04 15:53 ` pinskia at gcc dot gnu dot org
@ 2006-03-11 3:22 ` mmitchel at gcc dot gnu dot org
2006-03-13 23:47 ` sayle at gcc dot gnu dot org
` (7 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-03-11 3:22 UTC (permalink / raw)
To: gcc-bugs
--
mmitchel at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.0.3 |4.0.4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26557
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug middle-end/26557] [4.0/4.1/4.2 Regression] ICE in simplify_subreg
2006-03-04 15:39 [Bug c++/26557] New: ICE in simplify_subreg debian-gcc at lists dot debian dot org
` (3 preceding siblings ...)
2006-03-11 3:22 ` mmitchel at gcc dot gnu dot org
@ 2006-03-13 23:47 ` sayle at gcc dot gnu dot org
2006-03-14 1:31 ` [Bug middle-end/26557] [4.0/4.1 " pinskia at gcc dot gnu dot org
` (6 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: sayle at gcc dot gnu dot org @ 2006-03-13 23:47 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from sayle at gcc dot gnu dot org 2006-03-13 23:47 -------
Subject: Bug 26557
Author: sayle
Date: Mon Mar 13 23:47:47 2006
New Revision: 112032
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=112032
Log:
PR middle-end/26557
* stmt.c (emit_case_nodes): Handle the case where the index is a
CONST_INT, where the comparison mode is specified by the index type.
* gcc.c-torture/compile/switch-1.c: New test case.
Added:
trunk/gcc/testsuite/gcc.c-torture/compile/switch-1.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/stmt.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26557
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug middle-end/26557] [4.0/4.1 Regression] ICE in simplify_subreg
2006-03-04 15:39 [Bug c++/26557] New: ICE in simplify_subreg debian-gcc at lists dot debian dot org
` (4 preceding siblings ...)
2006-03-13 23:47 ` sayle at gcc dot gnu dot org
@ 2006-03-14 1:31 ` pinskia at gcc dot gnu dot org
2006-03-14 19:19 ` sayle at gcc dot gnu dot org
` (5 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-03-14 1:31 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from pinskia at gcc dot gnu dot org 2006-03-14 01:31 -------
Fix is now on the mainline.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to fail|4.0.3 4.0.2 4.1.0 4.2.0 |4.0.3 4.0.2 4.1.0
Known to work|3.4.0 |3.4.0 4.2.0
Summary|[4.0/4.1/4.2 Regression] ICE|[4.0/4.1 Regression] ICE in
|in simplify_subreg |simplify_subreg
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26557
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug middle-end/26557] [4.0/4.1 Regression] ICE in simplify_subreg
2006-03-04 15:39 [Bug c++/26557] New: ICE in simplify_subreg debian-gcc at lists dot debian dot org
` (5 preceding siblings ...)
2006-03-14 1:31 ` [Bug middle-end/26557] [4.0/4.1 " pinskia at gcc dot gnu dot org
@ 2006-03-14 19:19 ` sayle at gcc dot gnu dot org
2006-03-14 23:09 ` [Bug middle-end/26557] [4.0 " pinskia at gcc dot gnu dot org
` (4 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: sayle at gcc dot gnu dot org @ 2006-03-14 19:19 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from sayle at gcc dot gnu dot org 2006-03-14 19:19 -------
Subject: Bug 26557
Author: sayle
Date: Tue Mar 14 19:19:14 2006
New Revision: 112063
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=112063
Log:
PR middle-end/26557
* stmt.c (emit_case_nodes): Handle the case where the index is a
CONST_INT, where the comparison mode is specified by the index type.
* gcc.c-torture/compile/switch-1.c: New test case.
Added:
branches/gcc-4_1-branch/gcc/testsuite/gcc.c-torture/compile/switch-1.c
Modified:
branches/gcc-4_1-branch/gcc/ChangeLog
branches/gcc-4_1-branch/gcc/stmt.c
branches/gcc-4_1-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26557
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug middle-end/26557] [4.0 Regression] ICE in simplify_subreg
2006-03-04 15:39 [Bug c++/26557] New: ICE in simplify_subreg debian-gcc at lists dot debian dot org
` (6 preceding siblings ...)
2006-03-14 19:19 ` sayle at gcc dot gnu dot org
@ 2006-03-14 23:09 ` pinskia at gcc dot gnu dot org
2006-03-16 1:21 ` sayle at gcc dot gnu dot org
` (3 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-03-14 23:09 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from pinskia at gcc dot gnu dot org 2006-03-14 23:09 -------
Fixed also in 4.1.1 now.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to work|3.4.0 4.2.0 |3.4.0 4.2.0 4.1.1
Summary|[4.0/4.1 Regression] ICE in |[4.0 Regression] ICE in
|simplify_subreg |simplify_subreg
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26557
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug middle-end/26557] [4.0 Regression] ICE in simplify_subreg
2006-03-04 15:39 [Bug c++/26557] New: ICE in simplify_subreg debian-gcc at lists dot debian dot org
` (7 preceding siblings ...)
2006-03-14 23:09 ` [Bug middle-end/26557] [4.0 " pinskia at gcc dot gnu dot org
@ 2006-03-16 1:21 ` sayle at gcc dot gnu dot org
2006-03-16 2:48 ` pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: sayle at gcc dot gnu dot org @ 2006-03-16 1:21 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from sayle at gcc dot gnu dot org 2006-03-16 01:21 -------
Subject: Bug 26557
Author: sayle
Date: Thu Mar 16 01:20:57 2006
New Revision: 112111
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=112111
Log:
PR middle-end/26557
* stmt.c (emit_case_nodes): Handle the case where the index is a
CONST_INT, where the comparison mode is specified by the index type.
* gcc.c-torture/compile/switch-1.c: New test case.
Added:
branches/gcc-4_0-branch/gcc/testsuite/gcc.c-torture/compile/switch-1.c
Modified:
branches/gcc-4_0-branch/gcc/ChangeLog
branches/gcc-4_0-branch/gcc/stmt.c
branches/gcc-4_0-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26557
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug middle-end/26557] [4.0 Regression] ICE in simplify_subreg
2006-03-04 15:39 [Bug c++/26557] New: ICE in simplify_subreg debian-gcc at lists dot debian dot org
` (8 preceding siblings ...)
2006-03-16 1:21 ` sayle at gcc dot gnu dot org
@ 2006-03-16 2:48 ` pinskia at gcc dot gnu dot org
2006-04-11 23:47 ` kazu at gcc dot gnu dot org
2006-06-05 19:14 ` stuart at gcc dot gnu dot org
11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-03-16 2:48 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from pinskia at gcc dot gnu dot org 2006-03-16 02:48 -------
Fixed.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26557
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug middle-end/26557] [4.0 Regression] ICE in simplify_subreg
2006-03-04 15:39 [Bug c++/26557] New: ICE in simplify_subreg debian-gcc at lists dot debian dot org
` (9 preceding siblings ...)
2006-03-16 2:48 ` pinskia at gcc dot gnu dot org
@ 2006-04-11 23:47 ` kazu at gcc dot gnu dot org
2006-06-05 19:14 ` stuart at gcc dot gnu dot org
11 siblings, 0 replies; 13+ messages in thread
From: kazu at gcc dot gnu dot org @ 2006-04-11 23:47 UTC (permalink / raw)
To: gcc-bugs
------- Comment #9 from kazu at gcc dot gnu dot org 2006-04-11 23:47 -------
Subject: Bug 26557
Author: kazu
Date: Tue Apr 11 23:47:35 2006
New Revision: 112870
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=112870
Log:
Backport from mainline.
2006-03-13 Roger Sayle <roger@eyesopen.com>
PR middle-end/26557
* gcc/stmt.c (emit_case_nodes): Handle the case where the
index is a CONST_INT, where the comparison mode is specified
by the index type.
2006-03-13 Roger Sayle <roger@eyesopen.com>
PR middle-end/26557
* gcc/gcc.c-torture/compile/switch-1.c: New test case.
Added:
branches/csl/sourcerygxx-4_1/gcc/testsuite/gcc.c-torture/compile/switch-1.c
Modified:
branches/csl/sourcerygxx-4_1/ChangeLog.csl
branches/csl/sourcerygxx-4_1/gcc/stmt.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26557
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug middle-end/26557] [4.0 Regression] ICE in simplify_subreg
2006-03-04 15:39 [Bug c++/26557] New: ICE in simplify_subreg debian-gcc at lists dot debian dot org
` (10 preceding siblings ...)
2006-04-11 23:47 ` kazu at gcc dot gnu dot org
@ 2006-06-05 19:14 ` stuart at gcc dot gnu dot org
11 siblings, 0 replies; 13+ messages in thread
From: stuart at gcc dot gnu dot org @ 2006-06-05 19:14 UTC (permalink / raw)
To: gcc-bugs
------- Comment #10 from stuart at gcc dot gnu dot org 2006-06-05 19:14 -------
Subject: Bug 26557
Author: stuart
Date: Mon Jun 5 19:14:11 2006
New Revision: 114403
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=114403
Log:
Radar 4561329
PR middle-end/26557
* stmt.c (emit_case_nodes): Handle the case where the index is a
CONST_INT, where the comparison mode is specified by the index type.
* gcc.c-torture/compile/switch-1.c: New test case.
Added:
branches/apple-local-200502-branch/gcc/testsuite/gcc.c-torture/compile/switch-1.c
Modified:
branches/apple-local-200502-branch/gcc/ChangeLog.apple-ppc
branches/apple-local-200502-branch/gcc/stmt.c
branches/apple-local-200502-branch/gcc/testsuite/ChangeLog.apple-ppc
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26557
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2006-06-05 19:14 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-03-04 15:39 [Bug c++/26557] New: ICE in simplify_subreg debian-gcc at lists dot debian dot org
2006-03-04 15:47 ` [Bug middle-end/26557] [4.0/4.1/4.2 Regression] " pinskia at gcc dot gnu dot org
2006-03-04 15:49 ` pinskia at gcc dot gnu dot org
2006-03-04 15:53 ` pinskia at gcc dot gnu dot org
2006-03-11 3:22 ` mmitchel at gcc dot gnu dot org
2006-03-13 23:47 ` sayle at gcc dot gnu dot org
2006-03-14 1:31 ` [Bug middle-end/26557] [4.0/4.1 " pinskia at gcc dot gnu dot org
2006-03-14 19:19 ` sayle at gcc dot gnu dot org
2006-03-14 23:09 ` [Bug middle-end/26557] [4.0 " pinskia at gcc dot gnu dot org
2006-03-16 1:21 ` sayle at gcc dot gnu dot org
2006-03-16 2:48 ` pinskia at gcc dot gnu dot org
2006-04-11 23:47 ` kazu at gcc dot gnu dot org
2006-06-05 19:14 ` stuart 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).