| Submitter | Anatoly Sokolov |
|---|---|
| Date | May 4, 2011, 5:32 p.m. |
| Message ID | <768470406.20110504213221@post.ru> |
| Download | mbox | patch |
| Permalink | /patch/94102/ |
| State | New |
| Headers | show |
Comments
Hi Anatoly, > Sorry for my mistake. I think that the patch is obvious, but I have no > capability to test it. > > > * config/sparc/sol.h (ASM_OUTPUT_CALL): Use print_operand target > hook. > > > Index: gcc/config/sparc/sol2.h > =================================================================== > --- gcc/config/sparc/sol2.h (revision 173212) > +++ gcc/config/sparc/sol2.h (working copy) > @@ -172,7 +172,7 @@ > do \ > { \ > fprintf (FILE, "\tcall\t"); \ > - print_operand (FILE, XEXP (DECL_RTL (FN), 0), 0); \ > + targetm.asm_out.print_operand (FILE, XEXP (DECL_RTL (FN), 0), 0); \ > fprintf (FILE, "\n\tnop\n"); \ > } \ > while (0) I thought so, too, but you also need to include target.h in config/sol2.c. I'm currently testing such a patch; will commit tomorrow if bootstrap passes. You could at least test it by cross-building cc1 for sparc-sun-solaris2.10, which failed to link. Rainer
Patch
Index: gcc/config/sparc/sol2.h =================================================================== --- gcc/config/sparc/sol2.h (revision 173212) +++ gcc/config/sparc/sol2.h (working copy) @@ -172,7 +172,7 @@ do \ { \ fprintf (FILE, "\tcall\t"); \ - print_operand (FILE, XEXP (DECL_RTL (FN), 0), 0); \ + targetm.asm_out.print_operand (FILE, XEXP (DECL_RTL (FN), 0), 0); \ fprintf (FILE, "\n\tnop\n"); \ } \ while (0)