diff options
author | Chao-ying Fu <fu@mips.com> | 2007-08-27 04:38:03 +0000 |
---|---|---|
committer | Chao-ying Fu <chaoyingfu@gcc.gnu.org> | 2007-08-27 04:38:03 +0000 |
commit | 14b4a70aa9660d225c1513b4f43f0b80df5fdfe3 (patch) | |
tree | c51ee984ab2fdff446b7e618afea579ae3354964 /gcc | |
parent | 9678086db16d5d3a30413db35157975d3bd25774 (diff) | |
download | gcc-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')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/rtl.h | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c41759d..fe67c4f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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): @@ -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__); \ |