From: Rainer Orth Date: Thu, 5 May 2011 09:10:19 +0000 (+0000) Subject: sol2.h (ASM_OUTPUT_CALL): Use targetm.asm_out.print_operand. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d634bfa1ae963dfea8c2b0eda147dd7ab9cf8254;p=gcc.git sol2.h (ASM_OUTPUT_CALL): Use targetm.asm_out.print_operand. * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use targetm.asm_out.print_operand. * config/sol2.c: Include target.h. From-SVN: r173419 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 509a742770f..1730c9bbe89 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2011-05-05 Rainer Orth + + * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use + targetm.asm_out.print_operand. + * config/sol2.c: Include target.h. + 2011-05-04 Jan Hubicka * ipa-inline.c (reset_edge_caches): New function. diff --git a/gcc/config/sol2.c b/gcc/config/sol2.c index d9f43ea26db..decde2fea29 100644 --- a/gcc/config/sol2.c +++ b/gcc/config/sol2.c @@ -25,6 +25,7 @@ along with GCC; see the file COPYING3. If not see #include "output.h" #include "tm.h" #include "rtl.h" +#include "target.h" #include "tm_p.h" #include "diagnostic-core.h" #include "ggc.h" diff --git a/gcc/config/sparc/sol2.h b/gcc/config/sparc/sol2.h index c370ea0d857..8141e096fc1 100644 --- a/gcc/config/sparc/sol2.h +++ b/gcc/config/sparc/sol2.h @@ -1,6 +1,6 @@ /* Definitions of target machine for GCC, for SPARC running Solaris 2 Copyright 1992, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2004, 2005, - 2006, 2007, 2008, 2010 Free Software Foundation, Inc. + 2006, 2007, 2008, 2010, 2011 Free Software Foundation, Inc. Contributed by Ron Guilmette (rfg@netcom.com). Additional changes by David V. Henkel-Wallace (gumby@cygnus.com). @@ -168,13 +168,13 @@ along with GCC; see the file COPYING3. If not see #define REGISTER_TARGET_PRAGMAS() solaris_register_pragmas () /* Output a simple call for .init/.fini. */ -#define ASM_OUTPUT_CALL(FILE, FN) \ - do \ - { \ - fprintf (FILE, "\tcall\t"); \ - print_operand (FILE, XEXP (DECL_RTL (FN), 0), 0); \ - fprintf (FILE, "\n\tnop\n"); \ - } \ +#define ASM_OUTPUT_CALL(FILE, FN) \ + do \ + { \ + fprintf (FILE, "\tcall\t"); \ + targetm.asm_out.print_operand (FILE, XEXP (DECL_RTL (FN), 0), 0); \ + fprintf (FILE, "\n\tnop\n"); \ + } \ while (0) /* This is how to output an assembler line that says to advance