gcc/
2014-08-27 David Malcolm <dmalcolm@redhat.com>
* rtl.h (PATTERN): Convert this macro into a pair of inline
functions, for now, requiring const_rtx and rtx.
From-SVN: r214585
+2014-08-27 David Malcolm <dmalcolm@redhat.com>
+
+ * rtl.h (PATTERN): Convert this macro into a pair of inline
+ functions, for now, requiring const_rtx and rtx.
+
2014-08-27 David Malcolm <dmalcolm@redhat.com>
* target.def (unwind_emit): Strengthen param "insn" from rtx to
#define BLOCK_FOR_INSN(INSN) XBBDEF (INSN, 2)
/* The body of an insn. */
-#define PATTERN(INSN) XEXP (INSN, 3)
+inline rtx PATTERN (const_rtx insn)
+{
+ return XEXP (insn, 3);
+}
+
+inline rtx& PATTERN (rtx insn)
+{
+ return XEXP (insn, 3);
+}
#define INSN_LOCATION(INSN) XUINT (INSN, 4)