genattrtab.c (check_attr_value): Allow negative const_int if negative_ok.
authorRichard Henderson <rth@cygnus.com>
Sun, 21 Feb 1999 18:30:37 +0000 (10:30 -0800)
committerRichard Henderson <rth@gcc.gnu.org>
Sun, 21 Feb 1999 18:30:37 +0000 (10:30 -0800)
commit7ee37ba40c711500d040d253a0cf49c635100d5a
treed06b5d850ee53d4ec20bbdfc14b0cbeb32def76c
parent0301787454dd52a66d62d421f8a4015ab62686ae
genattrtab.c (check_attr_value): Allow negative const_int if negative_ok.

        * genattrtab.c (check_attr_value): Allow negative const_int if
        negative_ok.  Accept integral arithmetic operators.  Accept
        direct references to other attributes.  Accept symbol_ref in
        non-constant attributes.
        (max_attr_value): Add new argument `unknownp'.  Update all callers.
        (or_attr_value): Likewise.
        (simplify_knowing): Don't optimize if max_attr_value unknown.
        (write_length_unit_log): Likewise with or_attr_value.
        (find_and_mark_used_attributes): Don't fallthru case.
        (write_attr_set): Pass thru all non-cond expressions.
        (write_attr_value): Handle symbol_ref, attr, and arithmetic.

From-SVN: r25348
gcc/ChangeLog
gcc/genattrtab.c