Branch: Tag:

2014-12-08

2014-12-08 09:55:30 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Compiler: Fixed NULL-deref in tree optimizer.

CAR for a F_*_EQ node may be NULL if the variable hasn't been declared.

Fixes [bug 7397 (#7397)].

2962:      static int depend_p3(node *a,node *b)   { -  if(!b) return 0; +  if(!b || !a) return 0;   #if 0    if(!(b->tree_info & OPT_SIDE_EFFECT) &&    (b->tree_info & OPT_EXTERNAL_DEPEND))