aboutsummaryrefslogtreecommitdiff
path: root/gcc/rtl.h
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>2002-05-21 15:39:31 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>2002-05-21 15:39:31 +0000
commitb0ad77d5188cc74820b4cc194beeffea83f8e142 (patch)
tree7dde89ed777a69056f79af262347ed2b943a5199 /gcc/rtl.h
parent279be7c8be548f0f0905ce019632b9f09cf06853 (diff)
downloadgcc-b0ad77d5188cc74820b4cc194beeffea83f8e142.zip
gcc-b0ad77d5188cc74820b4cc194beeffea83f8e142.tar.gz
gcc-b0ad77d5188cc74820b4cc194beeffea83f8e142.tar.bz2
rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Avoid warnings when disabling checking, and avoid multiple evaluation of RTX.
* rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Avoid warnings when disabling checking, and avoid multiple evaluation of RTX. From-SVN: r53687
Diffstat (limited to 'gcc/rtl.h')
-rw-r--r--gcc/rtl.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/rtl.h b/gcc/rtl.h
index ebcbd44..eac532e 100644
--- 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) \