]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
double-int.c (lshift_double, [...]): Remove SHIFT_COUNT_TRUNCATED handling.
authorRichard Sandiford <rdsandiford@googlemail.com>
Tue, 5 Nov 2013 19:58:12 +0000 (19:58 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Tue, 5 Nov 2013 19:58:12 +0000 (19:58 +0000)
gcc/
* double-int.c (lshift_double, rshift_double): Remove
SHIFT_COUNT_TRUNCATED handling.

From-SVN: r204415

gcc/ChangeLog
gcc/double-int.c

index b189eda2cafcbec74d6894ae8c4e7a7070a6b7de..3fe61211adf7ffa01db5c5a54b79acda0cc1104e 100644 (file)
@@ -1,3 +1,8 @@
+2013-11-05  Richard Sandiford  <rdsandiford@googlemail.com>
+
+       * double-int.c (lshift_double, rshift_double): Remove
+       SHIFT_COUNT_TRUNCATED handling.
+
 2013-11-05  Jeff Law  <law@redhat.com>
 
        * Makefile.in (OBJS): Add gimple-ssa-isolate-paths.o
index 32dc514a3dd1415357925d2e79558afebbaa4003..3803a63e3a9af51084e54e6a972f9269ddcb069e 100644 (file)
@@ -20,7 +20,7 @@ along with GCC; see the file COPYING3.  If not see
 #include "config.h"
 #include "system.h"
 #include "coretypes.h"
-#include "tm.h"                        /* For SHIFT_COUNT_TRUNCATED.  */
+#include "tm.h"                        /* For BITS_PER_UNIT and *_BIG_ENDIAN.  */
 #include "tree.h"
 
 static int add_double_with_sign (unsigned HOST_WIDE_INT, HOST_WIDE_INT,
@@ -237,9 +237,6 @@ rshift_double (unsigned HOST_WIDE_INT l1, HOST_WIDE_INT h1,
              ? -((unsigned HOST_WIDE_INT) h1 >> (HOST_BITS_PER_WIDE_INT - 1))
              : 0);
 
-  if (SHIFT_COUNT_TRUNCATED)
-    count %= prec;
-
   if (count >= HOST_BITS_PER_DOUBLE_INT)
     {
       /* Shifting by the host word size is undefined according to the
@@ -295,9 +292,6 @@ lshift_double (unsigned HOST_WIDE_INT l1, HOST_WIDE_INT h1,
 {
   unsigned HOST_WIDE_INT signmask;
 
-  if (SHIFT_COUNT_TRUNCATED)
-    count %= prec;
-
   if (count >= HOST_BITS_PER_DOUBLE_INT)
     {
       /* Shifting by the host word size is undefined according to the