+2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
+
+ * config/sol2.c: Include output.h.
+ (solaris_assemble_visibility): New function.
+ * config/t-sol2 (sol2.o): Add output.h dependency.
+ * config/sol2-protos.h (solaris_assemble_visibility): Declare.
+ * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
+ Redefine.
+
2010-03-31 Jakub Jelinek <jakub@redhat.com>
PR target/43580
{
if (lookup_attribute ("init", DECL_ATTRIBUTES (decl)))
{
- fprintf (file, PUSHSECTION_FORMAT, ".init");
+ fprintf (file, "\t.pushsection\t\".init\"\n");
ASM_OUTPUT_CALL (file, decl);
fprintf (file, "\t.popsection\n");
}
if (lookup_attribute ("fini", DECL_ATTRIBUTES (decl)))
{
- fprintf (file, PUSHSECTION_FORMAT, ".fini");
+ fprintf (file, "\t.pushsection\t\".fini\"\n");
ASM_OUTPUT_CALL (file, decl);
fprintf (file, "\t.popsection\n");
}
the visibility type VIS, which must not be VISIBILITY_DEFAULT. */
void
-solaris_assemble_visibility (tree decl ATTRIBUTE_UNUSED,
- int vis ATTRIBUTE_UNUSED)
+solaris_assemble_visibility (tree decl, int vis)
{
-#ifdef HAVE_GAS_HIDDEN
/* Sun as uses .symbolic for STV_PROTECTED. STV_INTERNAL is marked as
`currently reserved', but the linker treats it like STV_HIDDEN. Sun
Studio 12.1 cc emits .hidden instead.
name = IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (decl));
type = visibility_types[vis];
+ /* .hidden dates back before Solaris 2.5, but .symbolic was only added in
+ Solaris 9 12/02. */
+#ifdef HAVE_GAS_HIDDEN
fprintf (asm_out_file, "\t.%s\t", type);
assemble_name (asm_out_file, name);
fprintf (asm_out_file, "\n");