[gcc(refs/users/wschmidt/heads/builtins4)] rs6000: Fix whitespace issues

William Schmidt wschmidt@gcc.gnu.org
Fri Feb 26 21:56:24 GMT 2021


https://gcc.gnu.org/g:a2e175ac047965799f9aa0d8d31ad60eb52b44c3

commit a2e175ac047965799f9aa0d8d31ad60eb52b44c3
Author: Bill Schmidt <wschmidt@linux.ibm.com>
Date:   Fri Feb 26 15:56:07 2021 -0600

    rs6000: Fix whitespace issues
    
    2021-02-26  Bill Schmidt  <wschmidt@linux.ibm.com>
    
    gcc/
            * config/rs6000/rs6000-c.c (altivec_build_new_resolved_builtin):
            Fix bad whitespace.
            (altivec_resolve_new_overloaded_builtin): Likewise.
            * config/rs6000/rs6000-call.c (cpu_expand_builtin): Likewise.
            (rs6000_builtin_decl): Likewise.

Diff:
---
 gcc/config/rs6000/rs6000-c.c    | 12 ++++++------
 gcc/config/rs6000/rs6000-call.c |  4 ++--
 2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/gcc/config/rs6000/rs6000-c.c b/gcc/config/rs6000/rs6000-c.c
index 199e22a7c50..8713ea2a3b4 100644
--- a/gcc/config/rs6000/rs6000-c.c
+++ b/gcc/config/rs6000/rs6000-c.c
@@ -1993,7 +1993,7 @@ altivec_build_new_resolved_builtin (tree *args, int n, tree fntype,
   /* If the number of arguments to an overloaded function increases,
      we must expand this switch.  */
   gcc_assert (MAX_OVLD_ARGS <= 4);
-  
+
   switch (n)
     {
     case 0:
@@ -2051,7 +2051,7 @@ altivec_resolve_new_overloaded_builtin (location_t loc, tree fndecl,
   if (TARGET_DEBUG_BUILTIN)
     fprintf (stderr, "altivec_resolve_overloaded_builtin, code = %4d, %s\n",
 	     (int)fcode, IDENTIFIER_POINTER (DECL_NAME (fndecl)));
- 
+
   /* vec_lvsl and vec_lvsr are deprecated for use with LE element order.  */
   if (fcode == RS6000_OVLD_VEC_LVSL && !BYTES_BIG_ENDIAN)
     warning (OPT_Wdeprecated,
@@ -2734,7 +2734,7 @@ altivec_resolve_new_overloaded_builtin (location_t loc, tree fndecl,
 	return error_mark_node;
 
       if (n >= MAX_OVLD_ARGS)
-        abort ();
+	abort ();
 
       arg = default_conversion (arg);
 
@@ -2749,7 +2749,7 @@ altivec_resolve_new_overloaded_builtin (location_t loc, tree fndecl,
 					    ptr_type_node))
 	{
 	  arg = TREE_OPERAND (arg, 0);
-          type = TREE_TYPE (arg);
+	  type = TREE_TYPE (arg);
 	}
 
       /* Remove the const from the pointers to simplify the overload
@@ -2758,10 +2758,10 @@ altivec_resolve_new_overloaded_builtin (location_t loc, tree fndecl,
 	  && POINTER_TYPE_P (type)
 	  && TYPE_QUALS (TREE_TYPE (type)) != 0)
 	{
-          if (TYPE_READONLY (TREE_TYPE (type))
+	  if (TYPE_READONLY (TREE_TYPE (type))
 	      && !TYPE_READONLY (TREE_TYPE (decl_type)))
 	    warning (0, "passing argument %d of %qE discards qualifiers from "
-		        "pointer target type", n + 1, fndecl);
+		     "pointer target type", n + 1, fndecl);
 	  type = build_pointer_type (build_qualified_type (TREE_TYPE (type),
 							   0));
 	  arg = fold_convert (type, arg);
diff --git a/gcc/config/rs6000/rs6000-call.c b/gcc/config/rs6000/rs6000-call.c
index c98c0af1698..148d44219fd 100644
--- a/gcc/config/rs6000/rs6000-call.c
+++ b/gcc/config/rs6000/rs6000-call.c
@@ -10579,7 +10579,7 @@ cpu_expand_builtin (enum rs6000_builtins fcode, tree exp ATTRIBUTE_UNUSED,
 #else
   warning (0, "builtin %qs needs GLIBC (2.23 and newer) that exports hardware "
 	   "capability bits", rs6000_builtin_info[(size_t) fcode].name);
-  
+
   /* For old LIBCs, always return FALSE.  */
   emit_move_insn (target, GEN_INT (0));
 #endif /* TARGET_LIBC_PROVIDES_HWCAP_IN_TCB */
@@ -16233,7 +16233,7 @@ rs6000_builtin_decl (unsigned code, bool initialize_p ATTRIBUTE_UNUSED)
 {
   if (new_builtins_are_live)
     return rs6000_new_builtin_decl (code, initialize_p);
-  
+
   HOST_WIDE_INT fnmask;
 
   if (code >= RS6000_BUILTIN_COUNT)


More information about the Gcc-cvs mailing list