Ticket #29154: dragonegg-fix2.diff

File dragonegg-fix2.diff, 426 bytes (added by howarth@…, 14 years ago)

upstream dragon egg related fix from gcc-4_5-branch

  • gcc/tree.c

    old new  
    23372337  min = TYPE_MIN_VALUE (index_type);
    23382338  max = TYPE_MAX_VALUE (index_type);
    23392339
     2340  /* TYPE_MAX_VALUE may not be set if the array has unknown length.  */
     2341  if (!max)
     2342    return error_mark_node;
     2343
    23402344  return (integer_zerop (min)
    23412345          ? max
    23422346          : fold_build2 (MINUS_EXPR, TREE_TYPE (max), max, min));