From 8c0f01186fe9f5f6f414df1197ce3f65fee85a43 Mon Sep 17 00:00:00 2001 From: DJ Delorie Date: Thu, 16 Oct 2014 16:58:16 -0400 Subject: [PATCH] flag-types.h (sanitize_code): Don't assume targets have 32-bit integers. * flag-types.h (sanitize_code): Don't assume targets have 32-bit integers. From-SVN: r216349 --- gcc/ChangeLog | 3 +++ gcc/flag-types.h | 10 +++++----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index cf31da6958b..8f76145135a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,8 @@ 2014-10-16 DJ Delorie + * 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. diff --git a/gcc/flag-types.h b/gcc/flag-types.h index 3d01c4981eb..cacc1bfa796 100644 --- a/gcc/flag-types.h +++ b/gcc/flag-types.h @@ -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 -- 2.30.2