public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] arc: Remove orphan function.
@ 2021-03-09 10:53 Claudiu Zissulescu
  2021-03-09 15:40 ` Jeff Law
  0 siblings, 1 reply; 2+ messages in thread
From: Claudiu Zissulescu @ 2021-03-09 10:53 UTC (permalink / raw)
  To: gcc-patches; +Cc: gnu, fbedard, jbglaw

Remove unused function.

gcc/
2021-03-09  Claudiu Zissulescu  <claziss@synopsys.com>

	* config/arc/arc.c (arc_attr_type): Remove function.

Signed-off-by: Claudiu Zissulescu <claziss@synopsys.com>
---
 gcc/config/arc/arc.c | 17 -----------------
 1 file changed, 17 deletions(-)

diff --git a/gcc/config/arc/arc.c b/gcc/config/arc/arc.c
index 367e4c91c39..3201c3fefd7 100644
--- a/gcc/config/arc/arc.c
+++ b/gcc/config/arc/arc.c
@@ -10285,23 +10285,6 @@ arc_regno_use_in (unsigned int regno, rtx x)
   return NULL_RTX;
 }
 
-/* Return the integer value of the "type" attribute for INSN, or -1 if
-   INSN can't have attributes.  */
-
-static int
-arc_attr_type (rtx_insn *insn)
-{
-  if (NONJUMP_INSN_P (insn)
-      ? (GET_CODE (PATTERN (insn)) == USE
-	 || GET_CODE (PATTERN (insn)) == CLOBBER)
-      : JUMP_P (insn)
-      ? (GET_CODE (PATTERN (insn)) == ADDR_VEC
-	 || GET_CODE (PATTERN (insn)) == ADDR_DIFF_VEC)
-      : !CALL_P (insn))
-    return -1;
-  return get_attr_type (insn);
-}
-
 /* Code has a minimum p2 alignment of 1, which we must restore after
    an ADDR_DIFF_VEC.  */
 
-- 
2.26.2


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

* Re: [PATCH] arc: Remove orphan function.
  2021-03-09 10:53 [PATCH] arc: Remove orphan function Claudiu Zissulescu
@ 2021-03-09 15:40 ` Jeff Law
  0 siblings, 0 replies; 2+ messages in thread
From: Jeff Law @ 2021-03-09 15:40 UTC (permalink / raw)
  To: Claudiu Zissulescu, gcc-patches; +Cc: gnu, fbedard



On 3/9/21 3:53 AM, Claudiu Zissulescu via Gcc-patches wrote:
> Remove unused function.
>
> gcc/
> 2021-03-09  Claudiu Zissulescu  <claziss@synopsys.com>
>
> 	* config/arc/arc.c (arc_attr_type): Remove function.
OK
jeff


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

end of thread, other threads:[~2021-03-09 15:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-09 10:53 [PATCH] arc: Remove orphan function Claudiu Zissulescu
2021-03-09 15:40 ` Jeff Law

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).