public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] Add LABEL_REF_P to rtl.h
@ 2019-05-23 20:59 Bill Schmidt
  2019-05-24  9:27 ` Richard Biener
  0 siblings, 1 reply; 2+ messages in thread
From: Bill Schmidt @ 2019-05-23 20:59 UTC (permalink / raw)
  To: GCC Patches; +Cc: Segher Boessenkool

Hi,

This patch just adds a convenience macro to be used in subsequent patches.

Bootstrapped successfully on powerpc64le-unknown-linux-gnu.  Okay for trunk?

Thanks,
Bill


2019-05-23  Michael Meissner  <meissner@linux.ibm.com>

	* rtl.h (LABEL_REF_P): New #define.


Index: gcc/rtl.h
===================================================================
--- gcc/rtl.h	(revision 271579)
+++ gcc/rtl.h	(working copy)
@@ -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)

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] Add LABEL_REF_P to rtl.h
  2019-05-23 20:59 [PATCH] Add LABEL_REF_P to rtl.h Bill Schmidt
@ 2019-05-24  9:27 ` Richard Biener
  0 siblings, 0 replies; 2+ messages in thread
From: Richard Biener @ 2019-05-24  9:27 UTC (permalink / raw)
  To: Bill Schmidt; +Cc: GCC Patches, Segher Boessenkool

On Thu, May 23, 2019 at 10:59 PM Bill Schmidt <wschmidt@linux.ibm.com> wrote:
>
> Hi,
>
> This patch just adds a convenience macro to be used in subsequent patches.
>
> Bootstrapped successfully on powerpc64le-unknown-linux-gnu.  Okay for trunk?

OK.

> Thanks,
> Bill
>
>
> 2019-05-23  Michael Meissner  <meissner@linux.ibm.com>
>
>         * rtl.h (LABEL_REF_P): New #define.
>
>
> Index: gcc/rtl.h
> ===================================================================
> --- gcc/rtl.h   (revision 271579)
> +++ gcc/rtl.h   (working copy)
> @@ -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)
>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-05-24  9:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-23 20:59 [PATCH] Add LABEL_REF_P to rtl.h Bill Schmidt
2019-05-24  9:27 ` Richard Biener

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).