aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/sol2.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/config/sol2.c')
-rw-r--r--gcc/config/sol2.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/config/sol2.c b/gcc/config/sol2.c
index edf0eee..ae34584 100644
--- a/gcc/config/sol2.c
+++ b/gcc/config/sol2.c
@@ -24,6 +24,7 @@ Boston, MA 02111-1307, USA. */
#include "coretypes.h"
#include "tree.h"
#include "tm.h"
+#include "rtl.h"
#include "tm_p.h"
#include "toplev.h"
#include "ggc.h"
@@ -105,14 +106,14 @@ solaris_output_init_fini (FILE *file, tree decl)
if (lookup_attribute ("init", DECL_ATTRIBUTES (decl)))
{
fprintf (file, "\t.pushsection\t\".init\"\n");
- ASM_OUTPUT_CALL (file, IDENTIFIER_POINTER (DECL_NAME (decl)));
+ ASM_OUTPUT_CALL (file, decl);
fprintf (file, "\t.popsection\n");
}
if (lookup_attribute ("fini", DECL_ATTRIBUTES (decl)))
{
fprintf (file, "\t.pushsection\t\".fini\"\n");
- ASM_OUTPUT_CALL (file, IDENTIFIER_POINTER (DECL_NAME (decl)));
+ ASM_OUTPUT_CALL (file, decl);
fprintf (file, "\t.popsection\n");
}
}