This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Question about PR 5478
- From: Craig Rodrigues <rodrigc at mediaone dot net>
- To: gcc at gcc dot gnu dot org
- Date: Sun, 27 Jan 2002 16:02:34 -0500
- Subject: Question about PR 5478
Hi,
I am looking at PR 5478:
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&database=gcc&pr=5478
Does anyone know why this testcase crashes if compiled with -O?
===================================================================
struct complexvalori
{
__complex__ int p1;
};
struct complexvalori funz (void)
{
struct complexvalori ritorno_equazione_complex;
__real__ ritorno_equazione_complex.p1 = 30;
return ritorno_equazione_complex;
}
===================================================================
The ICE occurs in change_address_1() in this section of code:
if (GET_CODE (memref) != MEM)
abort ();
Is there some logic that is missing in expand_expr() in this
section of code?
case REALPART_EXPR:
op0 = expand_expr (TREE_OPERAND (exp, 0), 0, VOIDmode, 0);
return gen_realpart (mode, op0);
Thanks.
--
Craig Rodrigues
http://www.gis.net/~craigr
rodrigc@mediaone.net