public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/16123] THUMB -O1 -fnew-ra: struct copy causes ice
2004-06-21 20:34 [Bug rtl-optimization/16123] New: THUMB -O1 -fnew-ra: struct copy causes ice danfuzz at milk dot com
@ 2004-06-21 20:34 ` danfuzz at milk dot com
2004-08-03 19:11 ` [Bug rtl-optimization/16123] [new-ra] " pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: danfuzz at milk dot com @ 2004-06-21 20:34 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |ice-on-valid-code
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16123
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug rtl-optimization/16123] New: THUMB -O1 -fnew-ra: struct copy causes ice
@ 2004-06-21 20:34 danfuzz at milk dot com
2004-06-21 20:34 ` [Bug rtl-optimization/16123] " danfuzz at milk dot com
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: danfuzz at milk dot com @ 2004-06-21 20:34 UTC (permalink / raw)
To: gcc-bugs
The following small file will cause gcc to crash with an internal compiler error:
typedef struct {
int a;
int b;
int c;
} Splat;
void zorch(Splat *s);
void eek(Splat *s)
{
Splat s2 = *s;
zorch(&s2);
}
That's it. The error reported is:
eek.c: In function `eek':
eek.c:13: internal compiler error: in cselib_record_set, at cselib.c:1196
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
The salient part of cselib.c reads:
if (REG_VALUES (dreg) == 0)
{
VARRAY_PUSH_UINT (used_regs, dreg);
REG_VALUES (dreg) = new_elt_list (REG_VALUES (dreg), src_elt);
}
else
{
if (REG_VALUES (dreg)->elt == 0)
REG_VALUES (dreg)->elt = src_elt;
else
/* The register should have been invalidated. */
abort (); // LINE 1196
}
The file was compiled with this line:
$ arm-elf-gcc -c eek.c -mthumb -fno-builtin -O1 -fnew-ra
The compiler was built as follows:
$ tar -xjvf gcc-core-3.4.0.tar.bz2
$ cd gcc-3.4.0
$ ./configure --prefix=/usr/local/armdev --target=arm-elf --with-newlib --enable-languages=c
The following lines were uncommented in gcc/config/arm/t-arm-elf:
MULTILIB_OPTIONS += mno-thumb-interwork/mthumb-interwork
MULTILIB_DIRNAMES += normal interwork
MULTILIB_EXCEPTIONS += *mapcs-26/*mthumb-interwork*
$ make
$ sudo make install
In case it matters, I'm currently using binutils-2.15.
--
Summary: THUMB -O1 -fnew-ra: struct copy causes ice
Product: gcc
Version: new-ra
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: rtl-optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: danfuzz at milk dot com
CC: gcc-bugs at gcc dot gnu dot org
GCC target triplet: arm-elf-gcc
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16123
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug rtl-optimization/16123] [new-ra] THUMB -O1 -fnew-ra: struct copy causes ice
2004-06-21 20:34 [Bug rtl-optimization/16123] New: THUMB -O1 -fnew-ra: struct copy causes ice danfuzz at milk dot com
2004-06-21 20:34 ` [Bug rtl-optimization/16123] " danfuzz at milk dot com
2004-08-03 19:11 ` [Bug rtl-optimization/16123] [new-ra] " pinskia at gcc dot gnu dot org
@ 2004-08-03 19:11 ` pinskia at gcc dot gnu dot org
2005-01-17 15:23 ` pinskia at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-08-03 19:11 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-08-03 19:11 -------
Suspending until either new-regalloc branch is merged to mainline, or bug is rechecked against
new-regalloc branch.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |SUSPENDED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16123
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug rtl-optimization/16123] [new-ra] THUMB -O1 -fnew-ra: struct copy causes ice
2004-06-21 20:34 [Bug rtl-optimization/16123] New: THUMB -O1 -fnew-ra: struct copy causes ice danfuzz at milk dot com
2004-06-21 20:34 ` [Bug rtl-optimization/16123] " danfuzz at milk dot com
@ 2004-08-03 19:11 ` pinskia at gcc dot gnu dot org
2004-08-03 19:11 ` pinskia at gcc dot gnu dot org
2005-01-17 15:23 ` pinskia at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-08-03 19:11 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-08-03 19:11 -------
Confirming to ...
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2004-08-03 19:11:00
date| |
Summary|THUMB -O1 -fnew-ra: struct |[new-ra] THUMB -O1 -fnew-ra:
|copy causes ice |struct copy causes ice
Version|new-ra |3.4.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16123
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug rtl-optimization/16123] [new-ra] THUMB -O1 -fnew-ra: struct copy causes ice
2004-06-21 20:34 [Bug rtl-optimization/16123] New: THUMB -O1 -fnew-ra: struct copy causes ice danfuzz at milk dot com
` (2 preceding siblings ...)
2004-08-03 19:11 ` pinskia at gcc dot gnu dot org
@ 2005-01-17 15:23 ` pinskia at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-01-17 15:23 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-01-17 15:21 -------
Closing as wiill not fix as new-ra was removed from the mainline.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|SUSPENDED |RESOLVED
Resolution| |WONTFIX
Target Milestone|--- |4.0.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16123
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2005-01-17 15:23 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-21 20:34 [Bug rtl-optimization/16123] New: THUMB -O1 -fnew-ra: struct copy causes ice danfuzz at milk dot com
2004-06-21 20:34 ` [Bug rtl-optimization/16123] " danfuzz at milk dot com
2004-08-03 19:11 ` [Bug rtl-optimization/16123] [new-ra] " pinskia at gcc dot gnu dot org
2004-08-03 19:11 ` pinskia at gcc dot gnu dot org
2005-01-17 15:23 ` pinskia 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).