OSDN Git Service

* rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Avoid warnings when
authorghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 21 May 2002 15:39:31 +0000 (15:39 +0000)
committerghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 21 May 2002 15:39:31 +0000 (15:39 +0000)
disabling checking, and avoid multiple evaluation of RTX.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@53687 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/rtl.h

index c3d26dc..65cb0eb 100644 (file)
@@ -1,3 +1,8 @@
+2002-05-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Avoid warnings when
+       disabling checking, and avoid multiple evaluation of RTX.
+
 2002-05-21  Richard Earnshaw  <rearnsha@arm.com>
 
        * bitmap.c (bitmap_find_bit): Return early if we have the correct
index ebcbd44..eac532e 100644 (file)
--- a/gcc/rtl.h
+++ b/gcc/rtl.h
@@ -982,12 +982,12 @@ extern unsigned int subreg_regno  PARAMS ((rtx));
 
 #define SUBREG_PROMOTED_UNSIGNED_SET(RTX, VAL)                         \
 do {                                                                   \
-  RTL_FLAG_CHECK1("SUBREG_PROMOTED_UNSIGNED_SET", (RTX), SUBREG);      \
+  rtx const _rtx = RTL_FLAG_CHECK1("SUBREG_PROMOTED_UNSIGNED_SET", (RTX), SUBREG); \
   if ((VAL) < 0)                                                       \
-    (RTX)->volatil = 1;                                                        \
+    _rtx->volatil = 1;                                                 \
   else {                                                               \
-    (RTX)->volatil = 0;                                                        \
-    (RTX)->unchanging = (VAL);                                         \
+    _rtx->volatil = 0;                                                 \
+    _rtx->unchanging = (VAL);                                          \
   }                                                                    \
 } while (0)
 #define SUBREG_PROMOTED_UNSIGNED_P(RTX)        \