This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug middle-end/50708] Infinite loop between rshift_double and lshift_double if count is LONG_MIN


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]