This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/50708] Infinite loop between rshift_double and lshift_double if count is LONG_MIN
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 29 Mar 2012 08:27:16 +0000
- Subject: [Bug middle-end/50708] Infinite loop between rshift_double and lshift_double if count is LONG_MIN
- Auto-submitted: auto-generated
- References: <bug-50708-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50708
--- Comment #8 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-03-29 08:27:16 UTC ---
Author: rguenth
Date: Thu Mar 29 08:27:04 2012
New Revision: 185951
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=185951
Log:
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.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/double-int.c
trunk/gcc/double-int.h