+2011-08-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
+
+ PR debug/49887
+ * config/sol2.c (solaris_code_end): Rename to solaris_file_end.
+ * config/sol2-protos.h: Likewise.
+ * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Don't call
+ solaris_code_end.
+ * config/i386/sol2.h [!USE_GAS] (TARGET_ASM_FILE_END): Redefine.
+ * config/sparc/sparc.c (sparc_file_end) [TARGET_SOLARIS]: Call
+ solaris_file_end.
+ * config/sparc/sol2.h (TARGET_ASM_CODE_END): Remove.
+
2011-08-01 Julian Brown <julian@codesourcery.com>
* tree-ssa-sccvn.c (copy_reference_ops_from_ref): Support FIXED_CST.
rtx xops[2];
int regno;
-#ifdef TARGET_SOLARIS
- solaris_code_end ();
-#endif
-
for (regno = AX_REG; regno <= SP_REG; regno++)
{
char name[32];
#undef TARGET_ASM_NAMED_SECTION
#define TARGET_ASM_NAMED_SECTION i386_solaris_elf_named_section
+#ifndef USE_GAS
+/* Emit COMDAT group signature symbols for Sun as. */
+#undef TARGET_ASM_FILE_END
+#define TARGET_ASM_FILE_END solaris_file_end
+#endif
+
/* Unlike GNU ld, Sun ld doesn't coalesce .ctors.N/.dtors.N sections, so
inhibit their creation. Also cf. sparc/sysv4.h. */
#ifndef USE_GLD
/* Operating system specific prototypes to be used when targeting GCC for any
Solaris 2 system.
- Copyright 2004, 2007, 2010 Free Software Foundation, Inc.
+ Copyright 2004, 2007, 2010, 2011 Free Software Foundation, Inc.
This file is part of GCC.
extern void solaris_output_init_fini (FILE *, tree);
extern void solaris_assemble_visibility (tree, int);
extern void solaris_elf_asm_comdat_section (const char *, unsigned int, tree);
-extern void solaris_code_end (void);
+extern void solaris_file_end (void);
for Sun as. With a few exceptions, this is already the case. To
identify the missing ones without changing the affected frontents,
remember the signature symbols and emit those not marked
- TREE_SYMBOL_REFERENCED in solaris_code_end. */
+ TREE_SYMBOL_REFERENCED in solaris_file_end. */
if (solaris_comdat_htab == NULL)
solaris_comdat_htab = htab_create_alloc (37, comdat_hash, comdat_eq, NULL,
xcalloc, free);
/* Emit unreferenced COMDAT group signature symbols for Sun as. */
void
-solaris_code_end (void)
+solaris_file_end (void)
{
if (solaris_comdat_htab == NULL)
return;
#undef TARGET_ASM_NAMED_SECTION
#define TARGET_ASM_NAMED_SECTION sparc_solaris_elf_asm_named_section
-/* Emit COMDAT group signature symbols for Sun as. */
-#undef TARGET_ASM_CODE_END
-#define TARGET_ASM_CODE_END solaris_code_end
-
/* Sun as requires doublequoted section names on SPARC. While GNU as
supports that, too, we prefer the standard variant. */
#undef SECTION_NAME_FORMAT
if (NEED_INDICATE_EXEC_STACK)
file_end_indicate_exec_stack ();
+
+#ifdef TARGET_SOLARIS
+ solaris_file_end ();
+#endif
}
#ifdef TARGET_ALTERNATE_LONG_DOUBLE_MANGLING