rtl.h (XCNMPFV): Preserve const-ness of parameters through use of __typeof().
authorChao-ying Fu <fu@mips.com>
Mon, 27 Aug 2007 04:38:03 +0000 (04:38 +0000)
committerChao-ying Fu <chaoyingfu@gcc.gnu.org>
Mon, 27 Aug 2007 04:38:03 +0000 (04:38 +0000)
* rtl.h (XCNMPFV): Preserve const-ness of parameters through use of
__typeof().

From-SVN: r127825

gcc/ChangeLog
gcc/rtl.h

index c41759d3236e3c876252e1ce54404285b9f64dab..fe67c4f820625d9942e2268584bb6496d5cf4efa 100644 (file)
@@ -1,3 +1,8 @@
+2007-08-26  Chao-ying Fu  <fu@mips.com>
+
+       * rtl.h (XCNMPFV): Preserve const-ness of parameters through use of
+       __typeof().
+
 2007-08-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
 
        * alias.c (memory_modified_1, memory_modified_in_insn_p):
index 500ea88294e48a0d2c13a7a10e432987c3e62741..9f36cdaf22d9b34304db027b7ade9c264729643f 100644 (file)
--- 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__);               \