Print this page
12724 update smatch to 0.6.1-rc1-il-5

Split Close
Expand all
Collapse all
          --- old/usr/src/tools/smatch/src/smatch_slist.c
          +++ new/usr/src/tools/smatch/src/smatch_slist.c
↓ open down ↓ 448 lines elided ↑ open up ↑
 449  449                  ret = &merged;
 450  450          return ret;
 451  451  }
 452  452  
 453  453  struct sm_state *merge_sm_states(struct sm_state *one, struct sm_state *two)
 454  454  {
 455  455          struct smatch_state *s;
 456  456          struct sm_state *result;
 457  457          static int warned;
 458  458  
      459 +        if (one->state->data && !has_dynamic_states(one->owner))
      460 +                sm_msg("dynamic state: %s", show_sm(one));
      461 +
 459  462          if (one == two)
 460  463                  return one;
 461  464          if (out_of_memory()) {
 462  465                  if (!warned)
 463  466                          sm_warning("Function too hairy.  No more merges.");
 464  467                  warned = 1;
 465  468                  return one;
 466  469          }
 467  470          warned = 0;
 468  471          s = merge_states(one->owner, one->name, one->sym, one->state, two->state);
↓ open down ↓ 620 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX