re PR middle-end/50708 (Infinite loop between rshift_double and lshift_double if...
authorRichard Guenther <rguenther@suse.de>
Thu, 29 Mar 2012 08:27:04 +0000 (08:27 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 29 Mar 2012 08:27:04 +0000 (08:27 +0000)
commit477fcae3e8156d1cdcf7978595c3cff7617610b8
treeb43e29c3de16f535b3761a7a63b0cd8d9e988d63
parent0b28472897a059fdbb13f869dab5777af2e52297
re PR middle-end/50708 (Infinite loop between rshift_double and lshift_double if count is LONG_MIN)

2012-03-29  Richard Guenther  <rguenther@suse.de>

PR middle-end/50708
* double-int.h (rshift_double): Remove.
* double-int.c (lshift_double): Use absu_hwi to make count
positive.
(rshift_double): Make static, take unsigned count argument,
remove handling of negative count argument.
(double_int_rshift): Dispatch to lshift_double.

From-SVN: r185951
gcc/ChangeLog
gcc/double-int.c
gcc/double-int.h