rs6000.c (rs6000_assemble_visibility): Swap "internal" and "protected" in visibility...
authorDavid Edelsohn <dje.gcc@gmail.com>
Fri, 21 Oct 2016 02:26:09 +0000 (02:26 +0000)
committerDavid Edelsohn <dje@gcc.gnu.org>
Fri, 21 Oct 2016 02:26:09 +0000 (22:26 -0400)
* config/rs6000/rs6000.c (rs6000_assemble_visibility): Swap "internal"
and "protected" in visibility types.
(rs6000_xcoff_declare_function_name): Fix formatting.
(rs6000_xcoff_declare_object_name): Fix formatting.

From-SVN: r241393

gcc/ChangeLog
gcc/config/rs6000/rs6000.c

index ae08bc625c595ef50fdc769e208259a4e4f5eeb3..bc1d9d1a26c8592ef32ce8973521cc7954d21a56 100644 (file)
@@ -1,3 +1,10 @@
+2016-10-21  David Edelsohn  <dje.gcc@gmail.com>
+
+       * config/rs6000/rs6000.c (rs6000_assemble_visibility): Swap "internal"
+       and "protected" in visibility types.
+       (rs6000_xcoff_declare_function_name): Fix formatting.
+       (rs6000_xcoff_declare_object_name): Fix formatting.
+
 2016-10-21  Uros Bizjak  <ubizjak@gmail.com>
 
        * config/i386/i386.c (ix86_fold_builtin): Handle IX86_BUILTIN_INFQ
index 93cb41b21a04351efb9c7d15566463cdcc4fe013..654206f6740790f13614f006e2880611888957aa 100644 (file)
@@ -22676,7 +22676,7 @@ rs6000_assemble_visibility (tree decl, int vis)
       && TREE_CODE (decl) == FUNCTION_DECL)
     {
       static const char * const visibility_types[] = {
-       NULL, "internal", "hidden", "protected"
+       NULL, "protected", "hidden", "internal"
       };
 
       const char *name, *type;
@@ -35248,7 +35248,8 @@ rs6000_xcoff_declare_function_name (FILE *file, const char *name, tree decl)
   fputs (TARGET_32BIT ? "[DS]\n" : "[DS],3\n", file);
   RS6000_OUTPUT_BASENAME (file, buffer);
   fputs (":\n", file);
-  symtab_node::get (decl)->call_for_symbol_and_aliases (rs6000_declare_alias, &data, true);
+  symtab_node::get (decl)->call_for_symbol_and_aliases (rs6000_declare_alias,
+                                                       &data, true);
   fputs (TARGET_32BIT ? "\t.long ." : "\t.llong .", file);
   RS6000_OUTPUT_BASENAME (file, buffer);
   fputs (", TOC[tc0], 0\n", file);
@@ -35258,7 +35259,8 @@ rs6000_xcoff_declare_function_name (FILE *file, const char *name, tree decl)
   RS6000_OUTPUT_BASENAME (file, buffer);
   fputs (":\n", file);
   data.function_descriptor = true;
-  symtab_node::get (decl)->call_for_symbol_and_aliases (rs6000_declare_alias, &data, true);
+  symtab_node::get (decl)->call_for_symbol_and_aliases (rs6000_declare_alias,
+                                                       &data, true);
   if (!DECL_IGNORED_P (decl))
     {
       if (write_symbols == DBX_DEBUG || write_symbols == XCOFF_DEBUG)
@@ -35282,7 +35284,8 @@ rs6000_xcoff_declare_object_name (FILE *file, const char *name, tree decl)
   struct declare_alias_data data = {file, false};
   RS6000_OUTPUT_BASENAME (file, name);
   fputs (":\n", file);
-  symtab_node::get (decl)->call_for_symbol_and_aliases (rs6000_declare_alias, &data, true);
+  symtab_node::get (decl)->call_for_symbol_and_aliases (rs6000_declare_alias,
+                                                       &data, true);
 }
 
 /* Overide the default 'SYMBOL-.' syntax with AIX compatible 'SYMBOL-$'. */