This is the mail archive of the gcc-bugs@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]

[Bug tree-optimization/17716] New: ICE in tree-ssa-dom


/* { dg-do compile } */
/* { dg-options "-O2" } */
long x;
void
f3 (int i, ...)
{
  __builtin_va_list aps[10];
  __builtin_va_start(aps[4],i);
  x = __builtin_va_arg(aps[4],long);
  __builtin_va_end(aps[4]);
}

ICEs e.g. on powerpc (and on s390* I think as well, maybe others) in dom pass.

The problem seems that cprop propagates:
D.1144_7 = &aps[4];
...
addr.0_15 = D.1144_7->overflow_arg_area;

into:
addr.0_15 = (&aps[4])->overflow_arg_area;
(cprop_operand/propagate_value), but nothing verifies the result is really
gimple.

-- 
           Summary: ICE in tree-ssa-dom
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jakub at gcc dot gnu dot org
                CC: dnovillo at redhat dot com,gcc-bugs at gcc dot gnu dot
                    org
GCC target triplet: powerpc-redhat-linux


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


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