Branch: Tag:

2018-02-14

2018-02-14 15:12:21 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Revert "Compiler: Added Pike 8.0 compat for is_const() change."

This is obsolete when 6ac3cfe111ffebcb457701ea2cbe3a01a57fdb44 is reverted.

This reverts commit 2984f30cbe903776c0e678b444bba26c7d7d60a2.

1503:       default:    { -  int warn = 0; -  if(is_const(n) || (warn = (TEST_COMPAT(8, 0) && is_const_80(n)))) +  if(is_const(n))    { -  ptrdiff_t args; -  if (warn) { -  yywarning("Constant expression has external dependencies."); -  } -  args = eval_low(n,1); +  ptrdiff_t args=eval_low(n,1);    if(args==1) return;       if(args!=-1)
2091:    ));   }    - int is_const_80(node *n) - { -  if(!n) return 1; -  return !(n->tree_info & (OPT_SIDE_EFFECT | -  OPT_NOT_CONST | -  OPT_ASSIGNMENT | -  OPT_CASE | -  OPT_CONTINUE | -  OPT_BREAK | -  OPT_RETURN -  )); - } -  +    int node_is_tossable(node *n)   {    if (!(n->tree_info & (OPT_SIDE_EFFECT |