aboutsummaryrefslogtreecommitdiff
path: root/gcc/rtl.h
diff options
context:
space:
mode:
authorChao-ying Fu <fu@mips.com>2007-08-27 04:38:03 +0000
committerChao-ying Fu <chaoyingfu@gcc.gnu.org>2007-08-27 04:38:03 +0000
commit14b4a70aa9660d225c1513b4f43f0b80df5fdfe3 (patch)
treec51ee984ab2fdff446b7e618afea579ae3354964 /gcc/rtl.h
parent9678086db16d5d3a30413db35157975d3bd25774 (diff)
downloadgcc-14b4a70aa9660d225c1513b4f43f0b80df5fdfe3.zip
gcc-14b4a70aa9660d225c1513b4f43f0b80df5fdfe3.tar.gz
gcc-14b4a70aa9660d225c1513b4f43f0b80df5fdfe3.tar.bz2
rtl.h (XCNMPFV): Preserve const-ness of parameters through use of __typeof().
* rtl.h (XCNMPFV): Preserve const-ness of parameters through use of __typeof(). From-SVN: r127825
Diffstat (limited to 'gcc/rtl.h')
-rw-r--r--gcc/rtl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/rtl.h b/gcc/rtl.h
index 500ea88..9f36cda 100644
--- a/gcc/rtl.h
+++ b/gcc/rtl.h
@@ -533,7 +533,7 @@ struct rtvec_def GTY(()) {
&_rtx->u.rv; })
#define XCNMPFV(RTX, C, M) __extension__ \
-({ rtx const _rtx = (RTX); \
+({ __typeof (RTX) const _rtx = (RTX); \
if (GET_CODE (_rtx) != (C) || GET_MODE (_rtx) == (M)) \
rtl_check_failed_code_mode (_rtx, (C), (M), true, __FILE__, \
__LINE__, __FUNCTION__); \