aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Meissner <meissner@linux.ibm.com>2019-05-29 02:10:59 +0000
committerWilliam Schmidt <wschmidt@gcc.gnu.org>2019-05-29 02:10:59 +0000
commit02441f3eecb42f3c38858bb4c5dae916620b1a52 (patch)
treec8d24b5eec868f1cfcbc77328df34050530bf32f
parent2872594a9597149ad7d41c44eb8da563637b634a (diff)
downloadgcc-02441f3eecb42f3c38858bb4c5dae916620b1a52.zip
gcc-02441f3eecb42f3c38858bb4c5dae916620b1a52.tar.gz
gcc-02441f3eecb42f3c38858bb4c5dae916620b1a52.tar.bz2
rtl.h (LABEL_REF_P): New #define.
2019-05-28 Michael Meissner <meissner@linux.ibm.com> * rtl.h (LABEL_REF_P): New #define. From-SVN: r271727
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/rtl.h4
2 files changed, 8 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 094e175..721a1e0 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2019-05-28 Michael Meissner <meissner@linux.ibm.com>
+
+ * rtl.h (LABEL_REF_P): New #define.
+
2019-05-28 John David Anglin <danglin@gcc.gnu.org>
* config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
diff --git a/gcc/rtl.h b/gcc/rtl.h
index b4a906f..31fba82 100644
--- a/gcc/rtl.h
+++ b/gcc/rtl.h
@@ -1052,6 +1052,10 @@ is_a_helper <rtx_note *>::test (rtx_insn *insn)
#define CONSTANT_P(X) \
(GET_RTX_CLASS (GET_CODE (X)) == RTX_CONST_OBJ)
+/* 1 if X is a LABEL_REF. */
+#define LABEL_REF_P(X) \
+ (GET_CODE (X) == LABEL_REF)
+
/* 1 if X can be used to represent an object. */
#define OBJECT_P(X) \
((GET_RTX_CLASS (GET_CODE (X)) & RTX_OBJ_MASK) == RTX_OBJ_RESULT)