> Hi Honza, Ping.
> Regtests cleanly for c,fortran,c++,ada,d,go,lto,objc,obj-c++
> Ok?
> I'd need this for attribute target_clones for the Fortran FE.
Sorry for delay here.
> > void
> > @@ -303,6 +301,10 @@ symbol_table::change_decl_assembler_name (tree decl,
> > tree name)
> > warning (0, "%qD renamed after being referenced in assembly", decl);
> >
> > SET_DECL_ASSEMBLER_NAME (decl, name);
> > + /* Set the new name in rtl. */
> > + if (DECL_RTL_SET_P (decl))
> > + XSTR (XEXP (DECL_RTL (decl), 0), 0) = IDENTIFIER_POINTER (name);
I am not quite sure how safe this is. We generally produce DECL_RTL
when we produce assembly file. So if DECL_RTL is set then we probably
already output the original function name and it is too late to change
it.
Also RTL is shared so changing it in-place is going to rewrite all the
existing RTL expressions using it.
Why the DECL_RTL is produced for function you want to rename?
Honza
> > +
> > if (alias)
> > {
> > IDENTIFIER_TRANSPARENT_ALIAS (name) = 1;
>