flag-types.h (sanitize_code): Don't assume targets have 32-bit integers.
authorDJ Delorie <dj@redhat.com>
Thu, 16 Oct 2014 20:58:16 +0000 (16:58 -0400)
committerDJ Delorie <dj@gcc.gnu.org>
Thu, 16 Oct 2014 20:58:16 +0000 (16:58 -0400)
* flag-types.h (sanitize_code): Don't assume targets have 32-bit
integers.

From-SVN: r216349

gcc/ChangeLog
gcc/flag-types.h

index cf31da6958bfea36d637f0d57ccb3553d55605de..8f76145135a6af758807cdf81fcd50f24f920f5b 100644 (file)
@@ -1,5 +1,8 @@
 2014-10-16  DJ Delorie  <dj@redhat.com>
 
+       * flag-types.h (sanitize_code): Don't assume targets have 32-bit
+       integers.
+
        * config/rs6000/rs6000-c.c (rid_int128): New.
        (rs6000_macro_to_expand): Use instead of RID_INT128.
 
index 3d01c4981eb2d3c2b4540d15918eeeb7cad113b3..cacc1bfa79650b95a435310e6c386dc3453a24d5 100644 (file)
@@ -232,11 +232,11 @@ enum sanitize_code {
   SANITIZE_ENUM = 1 << 13,
   SANITIZE_FLOAT_DIVIDE = 1 << 14,
   SANITIZE_FLOAT_CAST = 1 << 15,
-  SANITIZE_BOUNDS = 1 << 16,
-  SANITIZE_ALIGNMENT = 1 << 17,
-  SANITIZE_NONNULL_ATTRIBUTE = 1 << 18,
-  SANITIZE_RETURNS_NONNULL_ATTRIBUTE = 1 << 19,
-  SANITIZE_OBJECT_SIZE = 1 << 20,
+  SANITIZE_BOUNDS = 1UL << 16,
+  SANITIZE_ALIGNMENT = 1UL << 17,
+  SANITIZE_NONNULL_ATTRIBUTE = 1UL << 18,
+  SANITIZE_RETURNS_NONNULL_ATTRIBUTE = 1UL << 19,
+  SANITIZE_OBJECT_SIZE = 1UL << 20,
   SANITIZE_UNDEFINED = SANITIZE_SHIFT | SANITIZE_DIVIDE | SANITIZE_UNREACHABLE
                       | SANITIZE_VLA | SANITIZE_NULL | SANITIZE_RETURN
                       | SANITIZE_SI_OVERFLOW | SANITIZE_BOOL | SANITIZE_ENUM