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

Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
                 CC|                            |trippels at gcc dot gnu.org
         Resolution|FIXED                       |---
      Known to fail|                            |4.9.0

--- Comment #10 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
Confirmed.

A bit further reduced:

markus@x4 tmp % cat test.i
typedef struct {
  int *ptr;
  int len;
} string;
typedef struct {
  string nantstr;
  int *nant;
} malv;
typedef struct {
  int *nor;
} list_heads;
int b;
list_heads *fn1(string, int *, unsigned);
void fn2(malv *p1, list_heads *p2, unsigned p3) {
  string a = p1->nantstr;
  fn1(a, p1->nant, p3);
}

void fn3(unsigned p1) { fn2(0, 0, p1); }

list_heads *fn1(string p1, int *p2, unsigned p3) {
  while (1) {
    if (p3)
      fn3(1);
    if (b)
      return 0;
    fn3(1);
  }
}

void fn5() {
  list_heads c;
  c.nor = 0;
  fn2(0, &c, 1);
}

markus@x4 tmp % /var/tmp/gcc_test/usr/local/bin/gcc -c -O2 -fno-inline
-fipa-cp-clone test.i
test.i:35:1: internal compiler error: in ipa_get_parm_lattices, at ipa-cp.c:261
 }
 ^
0xe99411 ipa_get_parm_lattices
        ../../gcc/gcc/ipa-cp.c:261
0xe99411 cgraph_edge_brings_all_agg_vals_for_node
        ../../gcc/gcc/ipa-cp.c:3187
0xe99411 perhaps_add_new_callers
        ../../gcc/gcc/ipa-cp.c:3245
0xe99411 decide_about_value
        ../../gcc/gcc/ipa-cp.c:3318
0xe9c2c3 decide_whether_version_node
        ../../gcc/gcc/ipa-cp.c:3411
0xe9c2c3 ipcp_decision_stage
        ../../gcc/gcc/ipa-cp.c:3556
0xe9c2c3 ipcp_driver
        ../../gcc/gcc/ipa-cp.c:3598
0xe9c2c3 execute
        ../../gcc/gcc/ipa-cp.c:3694
Please submit a full bug report,

Reply via email to