aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/i386/sol2.h
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2004-11-15 16:11:19 +0000
committerJoseph Myers <jsm28@gcc.gnu.org>2004-11-15 16:11:19 +0000
commitdbdd0cf3095c82c73b7fb2d418562c38e44a00fe (patch)
tree323eb7dde25183e99fcd63d6d7c36b9fe1509643 /gcc/config/i386/sol2.h
parent11559c7515d65ff631f6482d96b4cdf560e589ea (diff)
downloadgcc-dbdd0cf3095c82c73b7fb2d418562c38e44a00fe.zip
gcc-dbdd0cf3095c82c73b7fb2d418562c38e44a00fe.tar.gz
gcc-dbdd0cf3095c82c73b7fb2d418562c38e44a00fe.tar.bz2
sol2.h (ASM_OUTPUT_CALL): Use print_operand.
2004-11-15 Mark Mitchell <mark@codesourcery.com> * config/i386/sol2.h (ASM_OUTPUT_CALL): Use print_operand. * config/sparc/sol2.h (ASM_OUTPUT_CALL): Likewise. * config/sol2.c (solaris_output_init_fini): Update calls to ASM_OUTPUT_CALL. Include "rtl.h". From-SVN: r90674
Diffstat (limited to 'gcc/config/i386/sol2.h')
-rw-r--r--gcc/config/i386/sol2.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/gcc/config/i386/sol2.h b/gcc/config/i386/sol2.h
index 36db29e..ab81c82 100644
--- a/gcc/config/i386/sol2.h
+++ b/gcc/config/i386/sol2.h
@@ -87,5 +87,11 @@ Boston, MA 02111-1307, USA. */
#define SUBTARGET_ATTRIBUTE_TABLE SOLARIS_ATTRIBUTE_TABLE
/* Output a simple call for .init/.fini. */
-#define ASM_OUTPUT_CALL(FILE, NAME) \
- fprintf (FILE, "\tcall\t%s\n", NAME)
+#define ASM_OUTPUT_CALL(FILE, FN) \
+ do \
+ { \
+ fprintf (FILE, "\tcall\t"); \
+ print_operand (FILE, XEXP (DECL_RTL (FN), 0), 'P'); \
+ fprintf (FILE, "\n"); \
+ } \
+ while (0)