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
This commit is contained in:
parent
9678086db1
commit
14b4a70aa9
2 changed files with 6 additions and 1 deletions
|
@ -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__); \
|
||||
|
|
Loading…
Add table
Reference in a new issue