From: David Edelsohn Date: Fri, 21 Oct 2016 02:26:09 +0000 (+0000) Subject: rs6000.c (rs6000_assemble_visibility): Swap "internal" and "protected" in visibility... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=924fae46b341e810ec5f1fa0e99b5f0cadeff7eb;p=gcc.git rs6000.c (rs6000_assemble_visibility): Swap "internal" and "protected" in visibility types. * 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ae08bc625c5..bc1d9d1a26c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2016-10-21 David Edelsohn + + * 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 * config/i386/i386.c (ix86_fold_builtin): Handle IX86_BUILTIN_INFQ diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index 93cb41b21a0..654206f6740 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -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-$'. */