(PUSHSECTION_ASM_OP): Remove.
(POPSECTION_ASM_OP): Remove.
(PUSHSECTION_FORMAT): Remove.
* config/sol2.h (PUSHSECTION_FORMAT): Define.
* config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
* config/sol2.c (solaris_output_init_fini): Use it.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@157861
138bc75d-0d04-0410-961f-
82ee72b054a4
+2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
+
+ * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
+ (PUSHSECTION_ASM_OP): Remove.
+ (POPSECTION_ASM_OP): Remove.
+ (PUSHSECTION_FORMAT): Remove.
+ * config/sol2.h (PUSHSECTION_FORMAT): Define.
+ * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
+ * config/sol2.c (solaris_output_init_fini): Use it.
+
2010-03-31 Jie Zhang <jie@codesourcery.com>
PR 43574
{
if (lookup_attribute ("init", DECL_ATTRIBUTES (decl)))
{
- fprintf (file, "\t.pushsection\t\".init\"\n");
+ fprintf (file, PUSHSECTION_FORMAT, ".init");
ASM_OUTPUT_CALL (file, decl);
fprintf (file, "\t.popsection\n");
}
if (lookup_attribute ("fini", DECL_ATTRIBUTES (decl)))
{
- fprintf (file, "\t.pushsection\t\".fini\"\n");
+ fprintf (file, PUSHSECTION_FORMAT, ".fini");
ASM_OUTPUT_CALL (file, decl);
fprintf (file, "\t.popsection\n");
}
{ "init", 0, 0, true, false, false, NULL }, \
{ "fini", 0, 0, true, false, false, NULL }
+/* Solaris/x86 as and gas support the common ELF .section/.pushsection
+ syntax. */
+#define PUSHSECTION_FORMAT "\t.pushsection\t%s\n"
+
/* This is how to declare the size of a function. For Solaris, we output
any .init or .fini entries here. */
#undef ASM_DECLARE_FUNCTION_SIZE