http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59350

Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |ebotcazou at gcc dot 
gnu.org

--- Comment #33 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
OK, thanks for the testcase, which boils down to:

typedef struct
{
  void *v;
  int len;
  int sign;
} ZVALUE;

extern int pred (ZVALUE);

static unsigned long
small_factor (ZVALUE z)
{
  if (z.len > 0)
    return 0;

  return pred (z) ? -1 : 0;
}

unsigned long
zfactor (ZVALUE z)
{
  z.sign = 0;
  return small_factor (z);
}

eric@polaris:~/build/gcc/native> gcc/xgcc -Bgcc -S -O -g pr59350-2.c
pr59350-2.c: In function 'zfactor':
pr59350-2.c:24:1: internal compiler error: in vt_expand_var_loc_chain, at
var-tracking.c:8213
 }
 ^
0xd6d63c vt_expand_var_loc_chain
        /home/eric/svn/gcc/gcc/var-tracking.c:8213
0xd6d63c vt_expand_loc_callback
        /home/eric/svn/gcc/gcc/var-tracking.c:8409

Reply via email to