]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for shifted values to avoid build...
authorGeorg-Johann Lay <avr@gjlay.de>
Wed, 14 May 2014 11:05:40 +0000 (11:05 +0000)
committerGeorg-Johann Lay <gjl@gcc.gnu.org>
Wed, 14 May 2014 11:05:40 +0000 (11:05 +0000)
* config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
shifted values to avoid build warning.

From-SVN: r210418

gcc/ChangeLog
gcc/config/avr/avr.h

index b4054c2d6e9be70e47eb8be936a5cc96d6310976..8308c260bcafb4752961a3c30f79d1de762b168c 100644 (file)
@@ -1,3 +1,8 @@
+2014-05-14  Georg-Johann Lay  <avr@gjlay.de>
+
+       * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
+       shifted values to avoid build warning.
+
 2014-05-14  Eric Botcazou  <ebotcazou@adacore.com>
 
        * cfgcleanup.c (try_forward_edges): Use location_t for locations.
index 78434ec5e0d7095eb5d26cc55d6a505c844c93b4..9d34983e497ff5ed3e231378a15b36862966bd5a 100644 (file)
@@ -251,18 +251,18 @@ enum reg_class {
 #define REG_CLASS_CONTENTS {                                           \
   {0x00000000,0x00000000},     /* NO_REGS */                           \
   {0x00000001,0x00000000},     /* R0_REG */                            \
-  {3 << REG_X,0x00000000},      /* POINTER_X_REGS, r26 - r27 */                \
-  {3 << REG_Y,0x00000000},      /* POINTER_Y_REGS, r28 - r29 */                \
-  {3 << REG_Z,0x00000000},      /* POINTER_Z_REGS, r30 - r31 */                \
+  {3u << REG_X,0x00000000},     /* POINTER_X_REGS, r26 - r27 */                \
+  {3u << REG_Y,0x00000000},     /* POINTER_Y_REGS, r28 - r29 */                \
+  {3u << REG_Z,0x00000000},     /* POINTER_Z_REGS, r30 - r31 */                \
   {0x00000000,0x00000003},     /* STACK_REG, STACK */                  \
-  {(3 << REG_Y) | (3 << REG_Z),                                                \
+  {(3u << REG_Y) | (3u << REG_Z),                                      \
      0x00000000},              /* BASE_POINTER_REGS, r28 - r31 */      \
-  {(3 << REG_X) | (3 << REG_Y) | (3 << REG_Z),                         \
+  {(3u << REG_X) | (3u << REG_Y) | (3u << REG_Z),                      \
      0x00000000},              /* POINTER_REGS, r26 - r31 */           \
-  {(3 << REG_X) | (3 << REG_Y) | (3 << REG_Z) | (3 << REG_W),          \
+  {(3u << REG_X) | (3u << REG_Y) | (3u << REG_Z) | (3u << REG_W),      \
      0x00000000},              /* ADDW_REGS, r24 - r31 */              \
   {0x00ff0000,0x00000000},     /* SIMPLE_LD_REGS r16 - r23 */          \
-  {(3 << REG_X)|(3 << REG_Y)|(3 << REG_Z)|(3 << REG_W)|(0xff << 16),   \
+  {(3u << REG_X)|(3u << REG_Y)|(3u << REG_Z)|(3u << REG_W)|(0xffu << 16),\
      0x00000000},      /* LD_REGS, r16 - r31 */                        \
   {0x0000ffff,0x00000000},     /* NO_LD_REGS  r0 - r15 */              \
   {0xffffffff,0x00000000},     /* GENERAL_REGS, r0 - r31 */            \