From b0ad77d5188cc74820b4cc194beeffea83f8e142 Mon Sep 17 00:00:00 2001 From: "Kaveh R. Ghazi" Date: Tue, 21 May 2002 15:39:31 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/rtl.h | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c3d26dc2c1c..65cb0ebdc45 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2002-05-21 Kaveh R. Ghazi + + * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Avoid warnings when + disabling checking, and avoid multiple evaluation of RTX. + 2002-05-21 Richard Earnshaw * bitmap.c (bitmap_find_bit): Return early if we have the correct diff --git a/gcc/rtl.h b/gcc/rtl.h index ebcbd4482d0..eac532e612c 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) \ -- 2.30.2