summaryrefslogtreecommitdiff
path: root/gcc/rtl.h
diff options
context:
space:
mode:
authorYamaArashi <shadow962@live.com>2016-07-26 00:16:26 -0700
committerYamaArashi <shadow962@live.com>2016-07-26 00:16:26 -0700
commitf3580e4659c20e4f46f180d92f8b8f0211f3d855 (patch)
tree96dc161fd4e80829cbba75c07429bcc5cbd629b2 /gcc/rtl.h
parent055f692f630b8d6bee804c8d349d7c71a6b43798 (diff)
fix some warnings
Diffstat (limited to 'gcc/rtl.h')
-rwxr-xr-xgcc/rtl.h21
1 files changed, 15 insertions, 6 deletions
diff --git a/gcc/rtl.h b/gcc/rtl.h
index fcd38a0..bbaa715 100755
--- a/gcc/rtl.h
+++ b/gcc/rtl.h
@@ -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. */