c-decl.c (grokdeclarator): If array index or size calculations overflow, issue an...
authorDoug Evans <dje@seba.cygnus.com>
Wed, 27 Aug 1997 16:58:02 +0000 (16:58 +0000)
committerJeff Law <law@gcc.gnu.org>
Wed, 27 Aug 1997 16:58:02 +0000 (10:58 -0600)
commit3dedc65a1f69e0e9929f5d9c036e14bb25074d8a
tree108a7d1cdb95f1ef6bdac97fc0a9435314db54f9
parent88016fb7ef61bcc40b7cf8b1d6c6511a8896f594
c-decl.c (grokdeclarator): If array index or size calculations overflow, issue an error.

        * c-decl.c (grokdeclarator): If array index or size calculations
        overflow, issue an error.
        * fold-const.c (int_const_binop): New static function.
        (const_binop, size_binop): Call it.
Brought over from the fsf.

From-SVN: r14967
gcc/ChangeLog
gcc/c-decl.c
gcc/fold-const.c