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

-- 
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University

Reply via email to