(exp): Detect signed integer overflow.
authorrms <rms@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 13 Sep 1992 17:36:33 +0000 (17:36 +0000)
committerrms <rms@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 13 Sep 1992 17:36:33 +0000 (17:36 +0000)
commit52d8e5fb0e011be563290a0dea12bab26a1a9d09
tree1c312f669ad21b99b7383b829460e4c96311d1cd
parent7c72e92e51dea38cd2d69089b3df335342a20e6b
(exp): Detect signed integer overflow.
Replace `(unsigned)' with `(unsigned long)'.  When
evaluating << and >>, compute the correct answer without shifting
by more than HOST_BITS_PER_LONG, or by a negative quantity.
(integer_overflow, left_shift, right_shift): New functions.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@2118 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cexp.y