diff options
author | YamaArashi <shadow962@live.com> | 2016-07-26 00:16:26 -0700 |
---|---|---|
committer | YamaArashi <shadow962@live.com> | 2016-07-26 00:16:26 -0700 |
commit | f3580e4659c20e4f46f180d92f8b8f0211f3d855 (patch) | |
tree | 96dc161fd4e80829cbba75c07429bcc5cbd629b2 /gcc/rtl.h | |
parent | 055f692f630b8d6bee804c8d349d7c71a6b43798 (diff) |
fix some warnings
Diffstat (limited to 'gcc/rtl.h')
-rwxr-xr-x | gcc/rtl.h | 21 |
1 files changed, 15 insertions, 6 deletions
@@ -569,12 +569,21 @@ extern char *note_insn_name[]; MEM_SCALAR_P (LHS) = MEM_SCALAR_P (RHS)) \ /* If VAL is non-zero, set MEM_IN_STRUCT_P and clear MEM_SCALAR_P in - RTX. Otherwise, vice versa. Use this macro only when you are - *sure* that you know that the MEM is in a structure, or is a - scalar. VAL is evaluated only once. */ -#define MEM_SET_IN_STRUCT_P(RTX, VAL) \ - ((VAL) ? (MEM_IN_STRUCT_P (RTX) = 1, MEM_SCALAR_P (RTX) = 0) \ - : (MEM_IN_STRUCT_P (RTX) = 0, MEM_SCALAR_P (RTX) = 1)) + RTX. Otherwise, vice versa. Use this function only when you are + *sure* that you know that the MEM is in a structure, or is a scalar. */ +static inline void MEM_SET_IN_STRUCT_P(rtx x, int val) +{ + if (val) + { + MEM_IN_STRUCT_P(x) = 1; + MEM_SCALAR_P(x) = 0; + } + else + { + MEM_IN_STRUCT_P(x) = 0; + MEM_SCALAR_P(x) = 1; + } +} /* CYGNUS LOCAL unaligned-pointers */ /* For a MEM rtx, 1 if it may be an unaligned address. */ |