public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/32423] New: gcc.c-torture/compile/20020604-1.c ICEs
@ 2007-06-20 14:16 kazu at gcc dot gnu dot org
2007-06-21 13:37 ` [Bug target/32423] " zadeck at naturalbridge dot com
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: kazu at gcc dot gnu dot org @ 2007-06-20 14:16 UTC (permalink / raw)
To: gcc-bugs
gcc.c-torture/compile/20020604-1.c ICEs if compiled with
-O3 -fomit-frame-pointer -mcpu=5485.
Here is a reduced testcase min.c.
unsigned int
foo (unsigned int n)
{
float c[8192];
unsigned int i;
unsigned int d = 0;
union {
float r;
unsigned int i;
} e;
for (i = 0; i < n; i++)
{
e.r = c[i];
d = e.i;
}
return d;
}
I get:
$ ./cc1 -quiet -O3 -fomit-frame-pointer -mcpu=5485 min.c
min.c: In function 'foo':
min.c:17: error: insn does not satisfy its constraints:
(insn 42 73 43 5 min.c:13 (set (mem/s/c:SF (plus:SI (reg/f:SI 15 %sp)
(reg:SI 2 %d2)) [0 e.r+0 S4 A16])
(mem/s:SF (post_inc:SI (reg:SI 8 %a0 [orig:55 ivtmp.30 ] [55])) [3 c S4
A16])) 46 {movsf_cf_hard} (expr_list:REG_INC (reg:SI 8 %a0 [orig:55 ivtmp.30 ]
[55])
(nil)))
min.c:17: internal compiler error: in reload_cse_simplify_operands, at
postreload.c:396
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
A quick analysis shows that the following appears in min.c.172r.greg.
(insn 42 73 43 5 min.c:13 (set (mem/s/c:SF (plus:SI (reg/f:SI 15 %sp)
(reg:SI 2 %d2)) [0 e.r+0 S4 A16])
(mem/s:SF (post_inc:SI (reg:SI 8 %a0 [orig:55 ivtmp.30 ] [55])) [3 c S4
A16])) 46 {movsf_cf_hard} (expr_list:REG_INC (reg:SI 8 %a0 [orig:55 ivtmp.30 ]
[55])
(nil)))
Notice that SET_SRC has an address of the form SP + D2, which is
invalid on ColdFire.
--
Summary: gcc.c-torture/compile/20020604-1.c ICEs
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P3
Component: middle-end
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: kazu at gcc dot gnu dot org
GCC target triplet: m68k-elf
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32423
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug target/32423] gcc.c-torture/compile/20020604-1.c ICEs
2007-06-20 14:16 [Bug middle-end/32423] New: gcc.c-torture/compile/20020604-1.c ICEs kazu at gcc dot gnu dot org
@ 2007-06-21 13:37 ` zadeck at naturalbridge dot com
2007-06-25 11:44 ` kazu at gcc dot gnu dot org
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: zadeck at naturalbridge dot com @ 2007-06-21 13:37 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from zadeck at naturalbridge dot com 2007-06-21 13:37 -------
What is the configure string that i use to recreate this?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32423
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug target/32423] gcc.c-torture/compile/20020604-1.c ICEs
2007-06-20 14:16 [Bug middle-end/32423] New: gcc.c-torture/compile/20020604-1.c ICEs kazu at gcc dot gnu dot org
2007-06-21 13:37 ` [Bug target/32423] " zadeck at naturalbridge dot com
@ 2007-06-25 11:44 ` kazu at gcc dot gnu dot org
2007-06-25 11:51 ` kazu at gcc dot gnu dot org
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: kazu at gcc dot gnu dot org @ 2007-06-25 11:44 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from kazu at gcc dot gnu dot org 2007-06-25 11:44 -------
Here is the command line for configure.
/scratch/kazu/ce/2007-06-23-1351-0/src/gcc-mainline/configure
--build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --target=m68k-elf
--enable-shared --enable-threads --disable-libmudflap --disable-libssp
--disable-libgomp --disable-libstdcxx-pch --with-arch=cf --disable-shared
--disable-threads --with-gnu-as --with-gnu-ld --with-newlib --disable-nls
--prefix=/opt/codesourcery --disable-shared --disable-threads --disable-libssp
--disable-libgomp --without-headers --with-newlib --disable-decimal-float
--enable-languages=c --with-sysroot=/opt/codesourcery/m68k-elf
--with-build-sysroot=/scratch/kazu/ce/2007-06-23-1351-0/install/m68k-elf
--enable-poison-system-directories
--with-build-time-tools=/scratch/kazu/ce/2007-06-23-1351-0/install/m68k-elf/bin
--with-build-time-tools=/scratch/kazu/ce/2007-06-23-1351-0/install/m68k-elf/bin
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32423
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug target/32423] gcc.c-torture/compile/20020604-1.c ICEs
2007-06-20 14:16 [Bug middle-end/32423] New: gcc.c-torture/compile/20020604-1.c ICEs kazu at gcc dot gnu dot org
2007-06-21 13:37 ` [Bug target/32423] " zadeck at naturalbridge dot com
2007-06-25 11:44 ` kazu at gcc dot gnu dot org
@ 2007-06-25 11:51 ` kazu at gcc dot gnu dot org
2007-06-26 2:19 ` zadeck at naturalbridge dot com
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: kazu at gcc dot gnu dot org @ 2007-06-25 11:51 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from kazu at gcc dot gnu dot org 2007-06-25 11:50 -------
Richard Sandiford says that this bug is probably what
MODE_INDEX_REG_CLASS is intended to fix. Unfortunately, the patch to
add MODE_INDEX_REG_CLASS
http://gcc.gnu.org/ml/gcc-patches/2007-01/msg00782.html
has been rejected.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32423
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug target/32423] gcc.c-torture/compile/20020604-1.c ICEs
2007-06-20 14:16 [Bug middle-end/32423] New: gcc.c-torture/compile/20020604-1.c ICEs kazu at gcc dot gnu dot org
` (2 preceding siblings ...)
2007-06-25 11:51 ` kazu at gcc dot gnu dot org
@ 2007-06-26 2:19 ` zadeck at naturalbridge dot com
2008-03-30 22:50 ` schwab at suse dot de
2009-08-23 18:41 ` schwab at linux-m68k dot org
5 siblings, 0 replies; 7+ messages in thread
From: zadeck at naturalbridge dot com @ 2007-06-26 2:19 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from zadeck at naturalbridge dot com 2007-06-26 02:19 -------
so kazu,
is there anything that i need to do with this bug?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32423
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug target/32423] gcc.c-torture/compile/20020604-1.c ICEs
2007-06-20 14:16 [Bug middle-end/32423] New: gcc.c-torture/compile/20020604-1.c ICEs kazu at gcc dot gnu dot org
` (3 preceding siblings ...)
2007-06-26 2:19 ` zadeck at naturalbridge dot com
@ 2008-03-30 22:50 ` schwab at suse dot de
2009-08-23 18:41 ` schwab at linux-m68k dot org
5 siblings, 0 replies; 7+ messages in thread
From: schwab at suse dot de @ 2008-03-30 22:50 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from schwab at suse dot de 2008-03-30 22:49 -------
No longer reproducible on the trunk.
--
schwab at suse dot de changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to work| |4.4.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32423
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug target/32423] gcc.c-torture/compile/20020604-1.c ICEs
2007-06-20 14:16 [Bug middle-end/32423] New: gcc.c-torture/compile/20020604-1.c ICEs kazu at gcc dot gnu dot org
` (4 preceding siblings ...)
2008-03-30 22:50 ` schwab at suse dot de
@ 2009-08-23 18:41 ` schwab at linux-m68k dot org
5 siblings, 0 replies; 7+ messages in thread
From: schwab at linux-m68k dot org @ 2009-08-23 18:41 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from schwab at linux-m68k dot org 2009-08-23 18:40 -------
No longer reproducible with 4.4.0, assuming fixed.
--
schwab at linux-m68k dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.4.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32423
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2009-08-23 18:41 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-06-20 14:16 [Bug middle-end/32423] New: gcc.c-torture/compile/20020604-1.c ICEs kazu at gcc dot gnu dot org
2007-06-21 13:37 ` [Bug target/32423] " zadeck at naturalbridge dot com
2007-06-25 11:44 ` kazu at gcc dot gnu dot org
2007-06-25 11:51 ` kazu at gcc dot gnu dot org
2007-06-26 2:19 ` zadeck at naturalbridge dot com
2008-03-30 22:50 ` schwab at suse dot de
2009-08-23 18:41 ` schwab at linux-m68k 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).