rs6000: Make rs6000_invalid_builtin static (committed)

Message ID 2b5d7061-4622-adae-bcef-363505747bca@linux.ibm.com
State New
Headers show
Series
  • rs6000: Make rs6000_invalid_builtin static (committed)
Related show

Commit Message

Bill Schmidt Dec. 2, 2019, 6:56 p.m.
Hi,

I noticed this function should have been made static in the recent separation of
rs6000-call.c from rs6000.c.  Bootstrapped and tested on powerpc64le-linux-gnu,
committed.

Thanks!
Bill


Make rs6000_invalid_builtin static.

2019-12-02  Bill Schmidt  <wschmidt@linux.ibm.com>

	* config/rs6000/rs6000-call.c (rs6000_invalid_builtin): Make
	static.
	* config/rs6000/rs6000-internal.h (rs6000_invalid_builtin): Remove
	decl.

Patch

diff --git a/gcc/config/rs6000/rs6000-call.c b/gcc/config/rs6000/rs6000-call.c
index 7280a4ed9c8..9c9da09af5e 100644
--- a/gcc/config/rs6000/rs6000-call.c
+++ b/gcc/config/rs6000/rs6000-call.c
@@ -5087,7 +5087,7 @@  rs6000_builtin_is_supported_p (enum rs6000_builtins fncode)
  /* Raise an error message for a builtin function that is called without the
     appropriate target options being set.  */
  
-void
+static void
  rs6000_invalid_builtin (enum rs6000_builtins fncode)
  {
    size_t uns_fncode = (size_t) fncode;
diff --git a/gcc/config/rs6000/rs6000-internal.h b/gcc/config/rs6000/rs6000-internal.h
index baccfb3f887..51eb3e053cf 100644
--- a/gcc/config/rs6000/rs6000-internal.h
+++ b/gcc/config/rs6000/rs6000-internal.h
@@ -138,7 +138,6 @@  extern void rs6000_output_mi_thunk (FILE *file,
  				    tree function);
  extern bool rs6000_output_addr_const_extra (FILE *file, rtx x);
  extern bool rs6000_gimple_fold_builtin (gimple_stmt_iterator *gsi);
-extern void rs6000_invalid_builtin (enum rs6000_builtins fncode);
  extern tree rs6000_build_builtin_va_list (void);
  extern void rs6000_va_start (tree valist, rtx nextarg);
  extern tree rs6000_gimplify_va_arg (tree valist, tree type, gimple_seq *pre_p,