public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/17525] New: 4.0: ICE in emit_move_insn (non-BLKmode arg)
@ 2004-09-16 19:27 gcc-bugzilla at gcc dot gnu dot org
2004-09-16 19:41 ` [Bug middle-end/17525] [4.0 regression] " reichelt at gcc dot gnu dot org
` (10 more replies)
0 siblings, 11 replies; 12+ messages in thread
From: gcc-bugzilla at gcc dot gnu dot org @ 2004-09-16 19:27 UTC (permalink / raw)
To: gcc-bugs
g++ gives an ICE on the source below:
$ ./cc1plus -quiet x.cc
x.cc: In member function `B& B::operator=(const B&)':
x.cc:14: internal compiler error: in emit_move_insn, at expr.c:2485
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
$
Here's where it's crashing:
2484 gcc_assert (mode != BLKmode
2485 && (GET_MODE (y) == mode || GET_MODE (y) == VOIDmode));
2486
because here mode == BLKmode.
(gdb) call debug_rtx(x)
(reg:BLK 62)
(gdb) call debug_rtx(y)
(mem/s:BLK (reg:SI 59 [ D.1610 ]) [0 S4 A32])
Environment:
System: Linux karma 2.6.8.1 #20 Mon Sep 13 23:48:47 EDT 2004 i686 i686 i386 GNU/Linux
Architecture: i686
<machine, os, target, libraries (multiple lines)>
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: i686-pc-linux-gnu
configured with: /home/sss/gcc/gcc/configure --prefix=/usr/local/gcc --enable-threads=posix --enable-long-long --enable-languages=c,c++,f95
How-To-Repeat:
Compile the following (optimization not required):
--------------------------------------------------
struct A
{
~A();
int a;
};
struct B : public A
{
virtual ~B();
};
void run (B& b, B& b1)
{
b1 = b;
}
--------------------------------------------------
------- Additional Comments From snyder at fnal dot gov 2004-09-16 19:27 -------
Fix:
<how to correct or work around the problem, if known (multiple lines)>
--
Summary: 4.0: ICE in emit_move_insn (non-BLKmode arg)
Product: gcc
Version: 0.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: middle-end
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: snyder at fnal dot gov
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17525
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug middle-end/17525] [4.0 regression] ICE in emit_move_insn (non-BLKmode arg)
2004-09-16 19:27 [Bug middle-end/17525] New: 4.0: ICE in emit_move_insn (non-BLKmode arg) gcc-bugzilla at gcc dot gnu dot org
@ 2004-09-16 19:41 ` reichelt at gcc dot gnu dot org
2004-09-16 22:30 ` reichelt at gcc dot gnu dot org
` (9 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2004-09-16 19:41 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From reichelt at gcc dot gnu dot org 2004-09-16 19:41 -------
Confirmed.
Phil's regression hunter says:
: Search converges between 2004-08-30-trunk (#529) and 2004-08-31-trunk (#530).
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |reichelt at gcc dot gnu dot
| |org
Severity|normal |critical
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |ice-on-valid-code, monitored
Known to fail| |4.0.0
Known to work| |3.4.2
Last reconfirmed|0000-00-00 00:00:00 |2004-09-16 19:41:17
date| |
Summary|4.0: ICE in emit_move_insn |[4.0 regression] ICE in
|(non-BLKmode arg) |emit_move_insn (non-BLKmode
| |arg)
Target Milestone|--- |4.0.0
Version|0.0 |4.0.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17525
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug middle-end/17525] [4.0 regression] ICE in emit_move_insn (non-BLKmode arg)
2004-09-16 19:27 [Bug middle-end/17525] New: 4.0: ICE in emit_move_insn (non-BLKmode arg) gcc-bugzilla at gcc dot gnu dot org
2004-09-16 19:41 ` [Bug middle-end/17525] [4.0 regression] " reichelt at gcc dot gnu dot org
@ 2004-09-16 22:30 ` reichelt at gcc dot gnu dot org
2004-09-16 22:34 ` pinskia at gcc dot gnu dot org
` (8 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2004-09-16 22:30 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From reichelt at gcc dot gnu dot org 2004-09-16 22:30 -------
Richard, it looks as if your patch
http://gcc.gnu.org/ml/gcc-cvs/2004-08/msg01565.html
is responsible for the regression.
Could you please have a look?
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |rth at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17525
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug middle-end/17525] [4.0 regression] ICE in emit_move_insn (non-BLKmode arg)
2004-09-16 19:27 [Bug middle-end/17525] New: 4.0: ICE in emit_move_insn (non-BLKmode arg) gcc-bugzilla at gcc dot gnu dot org
2004-09-16 19:41 ` [Bug middle-end/17525] [4.0 regression] " reichelt at gcc dot gnu dot org
2004-09-16 22:30 ` reichelt at gcc dot gnu dot org
@ 2004-09-16 22:34 ` pinskia at gcc dot gnu dot org
2004-09-17 10:18 ` pinskia at gcc dot gnu dot org
` (7 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-09-16 22:34 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-09-16 22:34 -------
And this would be a latent bug ....
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17525
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug middle-end/17525] [4.0 regression] ICE in emit_move_insn (non-BLKmode arg)
2004-09-16 19:27 [Bug middle-end/17525] New: 4.0: ICE in emit_move_insn (non-BLKmode arg) gcc-bugzilla at gcc dot gnu dot org
` (2 preceding siblings ...)
2004-09-16 22:34 ` pinskia at gcc dot gnu dot org
@ 2004-09-17 10:18 ` pinskia at gcc dot gnu dot org
2004-09-21 13:38 ` pinskia at gcc dot gnu dot org
` (6 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-09-17 10:18 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-09-17 10:18 -------
I want to say this is a front-end bug (or gimplifer one) because the assignment:
this->D.1585 = *D.1606;
still has a type of the struct which is BLK_MODE.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17525
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug middle-end/17525] [4.0 regression] ICE in emit_move_insn (non-BLKmode arg)
2004-09-16 19:27 [Bug middle-end/17525] New: 4.0: ICE in emit_move_insn (non-BLKmode arg) gcc-bugzilla at gcc dot gnu dot org
` (3 preceding siblings ...)
2004-09-17 10:18 ` pinskia at gcc dot gnu dot org
@ 2004-09-21 13:38 ` pinskia at gcc dot gnu dot org
2004-09-22 11:28 ` pinskia at gcc dot gnu dot org
` (5 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-09-21 13:38 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-09-21 13:38 -------
*** Bug 17580 has been marked as a duplicate of this bug. ***
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |micis at gmx dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17525
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug middle-end/17525] [4.0 regression] ICE in emit_move_insn (non-BLKmode arg)
2004-09-16 19:27 [Bug middle-end/17525] New: 4.0: ICE in emit_move_insn (non-BLKmode arg) gcc-bugzilla at gcc dot gnu dot org
` (4 preceding siblings ...)
2004-09-21 13:38 ` pinskia at gcc dot gnu dot org
@ 2004-09-22 11:28 ` pinskia at gcc dot gnu dot org
2004-09-24 20:38 ` rth at gcc dot gnu dot org
` (4 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-09-22 11:28 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-09-22 11:28 -------
*** Bug 17599 has been marked as a duplicate of this bug. ***
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |gj at pointblue dot com dot
| |pl
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17525
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug middle-end/17525] [4.0 regression] ICE in emit_move_insn (non-BLKmode arg)
2004-09-16 19:27 [Bug middle-end/17525] New: 4.0: ICE in emit_move_insn (non-BLKmode arg) gcc-bugzilla at gcc dot gnu dot org
` (5 preceding siblings ...)
2004-09-22 11:28 ` pinskia at gcc dot gnu dot org
@ 2004-09-24 20:38 ` rth at gcc dot gnu dot org
2004-09-28 21:12 ` jason at gcc dot gnu dot org
` (3 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: rth at gcc dot gnu dot org @ 2004-09-24 20:38 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From rth at gcc dot gnu dot org 2004-09-24 20:38 -------
Problem here is that we've got
basetype
<record_type 0xb71eac3c A addressable type_1 type_2 type_4 type_5 BLK
CLASSTYPE_AS_BASE (basetype)
<record_type 0xb71ed740 SI
Which means that the base class access via "this->D1234" has a different
mode than accessing something of class A via a different method.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17525
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug middle-end/17525] [4.0 regression] ICE in emit_move_insn (non-BLKmode arg)
2004-09-16 19:27 [Bug middle-end/17525] New: 4.0: ICE in emit_move_insn (non-BLKmode arg) gcc-bugzilla at gcc dot gnu dot org
` (6 preceding siblings ...)
2004-09-24 20:38 ` rth at gcc dot gnu dot org
@ 2004-09-28 21:12 ` jason at gcc dot gnu dot org
2004-09-28 21:29 ` pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: jason at gcc dot gnu dot org @ 2004-09-28 21:12 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From jason at gcc dot gnu dot org 2004-09-28 21:12 -------
mine
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |jason at gcc dot gnu dot org
|dot org |
Status|NEW |ASSIGNED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17525
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug middle-end/17525] [4.0 regression] ICE in emit_move_insn (non-BLKmode arg)
2004-09-16 19:27 [Bug middle-end/17525] New: 4.0: ICE in emit_move_insn (non-BLKmode arg) gcc-bugzilla at gcc dot gnu dot org
` (7 preceding siblings ...)
2004-09-28 21:12 ` jason at gcc dot gnu dot org
@ 2004-09-28 21:29 ` pinskia at gcc dot gnu dot org
2004-09-29 6:24 ` cvs-commit at gcc dot gnu dot org
2004-09-29 11:45 ` pinskia at gcc dot gnu dot org
10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-09-28 21:29 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-09-28 21:29 -------
*** Bug 17718 has been marked as a duplicate of this bug. ***
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |olh at suse dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17525
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug middle-end/17525] [4.0 regression] ICE in emit_move_insn (non-BLKmode arg)
2004-09-16 19:27 [Bug middle-end/17525] New: 4.0: ICE in emit_move_insn (non-BLKmode arg) gcc-bugzilla at gcc dot gnu dot org
` (8 preceding siblings ...)
2004-09-28 21:29 ` pinskia at gcc dot gnu dot org
@ 2004-09-29 6:24 ` cvs-commit at gcc dot gnu dot org
2004-09-29 11:45 ` pinskia at gcc dot gnu dot org
10 siblings, 0 replies; 12+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-09-29 6:24 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-09-29 06:24 -------
Subject: Bug 17525
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: jason@gcc.gnu.org 2004-09-29 06:23:49
Modified files:
gcc/cp : ChangeLog class.c
Added files:
gcc/testsuite/g++.dg/init: synth1.C
Log message:
PR middle-end/17525
* class.c (build_base_field): Set TYPE_MODE.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.4394&r2=1.4395
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/class.c.diff?cvsroot=gcc&r1=1.678&r2=1.679
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/init/synth1.C.diff?cvsroot=gcc&r1=NONE&r2=1.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17525
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug middle-end/17525] [4.0 regression] ICE in emit_move_insn (non-BLKmode arg)
2004-09-16 19:27 [Bug middle-end/17525] New: 4.0: ICE in emit_move_insn (non-BLKmode arg) gcc-bugzilla at gcc dot gnu dot org
` (9 preceding siblings ...)
2004-09-29 6:24 ` cvs-commit at gcc dot gnu dot org
@ 2004-09-29 11:45 ` pinskia at gcc dot gnu dot org
10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-09-29 11:45 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-09-29 11:45 -------
Fixed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17525
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2004-09-29 11:45 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-16 19:27 [Bug middle-end/17525] New: 4.0: ICE in emit_move_insn (non-BLKmode arg) gcc-bugzilla at gcc dot gnu dot org
2004-09-16 19:41 ` [Bug middle-end/17525] [4.0 regression] " reichelt at gcc dot gnu dot org
2004-09-16 22:30 ` reichelt at gcc dot gnu dot org
2004-09-16 22:34 ` pinskia at gcc dot gnu dot org
2004-09-17 10:18 ` pinskia at gcc dot gnu dot org
2004-09-21 13:38 ` pinskia at gcc dot gnu dot org
2004-09-22 11:28 ` pinskia at gcc dot gnu dot org
2004-09-24 20:38 ` rth at gcc dot gnu dot org
2004-09-28 21:12 ` jason at gcc dot gnu dot org
2004-09-28 21:29 ` pinskia at gcc dot gnu dot org
2004-09-29 6:24 ` cvs-commit at gcc dot gnu dot org
2004-09-29 11:45 ` 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).