From 14b4a70aa9660d225c1513b4f43f0b80df5fdfe3 Mon Sep 17 00:00:00 2001 From: Chao-ying Fu Date: Mon, 27 Aug 2007 04:38:03 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/rtl.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c41759d3236..fe67c4f8206 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2007-08-26 Chao-ying Fu + + * rtl.h (XCNMPFV): Preserve const-ness of parameters through use of + __typeof(). + 2007-08-26 Kaveh R. Ghazi * alias.c (memory_modified_1, memory_modified_in_insn_p): diff --git a/gcc/rtl.h b/gcc/rtl.h index 500ea88294e..9f36cdaf22d 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__); \ -- 2.30.2