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

           Summary: internal compiler error: in create_mem_ref, at
                    tree-ssa-address.c:806
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: hjl.to...@gmail.com
                CC: ubiz...@gmail.com


[hjl@gnu-6 ilp32-36]$ cat x.i 
typedef long long __m256i __attribute__ ((__vector_size__ (32),
       __may_alias__));
typedef union
{
  __m256i x;
  char a[32];
} union256i_b;
int check_union256i_b (union256i_b u, const char *v)
{
  int i;
  int err = 0;
  for (i = 0; i < (sizeof (u.a) / sizeof ((u.a)[0])); i++)
    if (u.a[i] != v[i])
      {
    err++;
      } 
  return err;
}
[hjl@gnu-6 ilp32-36]$ make
/export/build/gnu/gcc-x32/build-x86_64-linux/gcc/xgcc
-B/export/build/gnu/gcc-x32/build-x86_64-linux/gcc/ -S -o x.s -mx32 -O2 -mavx  
x.i
x.i: In function ‘check_union256i_b’:
x.i:8:5: internal compiler error: in create_mem_ref, at tree-ssa-address.c:806
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
make: *** [x.s] Error 1
[hjl@gnu-6 ilp32-36]$

Reply via email to