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

           Summary: ICE at ipa-inline-analysis.c:1188
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: an...@samba.org
            Target: powerpc64-linux-gnu-gnu


A recent powerpc64-linux build of gcc:

gcc version 4.7.0 20110630 (experimental) (GCC) 

gets an ICE with the following testcase (originally from a kernel compile):

static inline __attribute__((always_inline)) void zot(unsigned a, unsigned b)
{
    if (__builtin_constant_p(a > 4096 || b > 0))
        asm volatile("":::"memory");
}

int foo(unsigned long a)
{
    unsigned b = 4096 - a;
    zot(a + b, 0);

    return 1;
}

# gcc -O2 -c fs/buffer.i
fs/buffer.i:13:1: internal compiler error: tree check: expected ssa_name, have
integer_cst in set_cond_stmt_execution_predicate, at ipa-inline-analysis.c:1188
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

Reply via email to