From 02441f3eecb42f3c38858bb4c5dae916620b1a52 Mon Sep 17 00:00:00 2001 From: Michael Meissner Date: Wed, 29 May 2019 02:10:59 +0000 Subject: [PATCH] rtl.h (LABEL_REF_P): New #define. 2019-05-28 Michael Meissner * rtl.h (LABEL_REF_P): New #define. From-SVN: r271727 --- gcc/ChangeLog | 4 ++++ gcc/rtl.h | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 094e175f797..721a1e0f36f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2019-05-28 Michael Meissner + + * rtl.h (LABEL_REF_P): New #define. + 2019-05-28 John David Anglin * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment. diff --git a/gcc/rtl.h b/gcc/rtl.h index b4a906f9181..31fba823435 100644 --- a/gcc/rtl.h +++ b/gcc/rtl.h @@ -1052,6 +1052,10 @@ is_a_helper ::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) -- 2.30.2