This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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          


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]