misc.c (gnat_printable_name): Always return a copy in GC memory.
* gcc-interface/misc.c (gnat_printable_name): Always return a copy in GC memory. From-SVN: r141638
This commit is contained in:
parent
8b659f794a
commit
baf6e6a838
|
@ -1,3 +1,8 @@
|
||||||
|
2008-11-06 Eric Botcazou <ebotcazou@adacore.com>
|
||||||
|
|
||||||
|
* gcc-interface/misc.c (gnat_printable_name): Always return a copy
|
||||||
|
in GC memory.
|
||||||
|
|
||||||
2008-11-06 Eric Botcazou <ebotcazou@adacore.com>
|
2008-11-06 Eric Botcazou <ebotcazou@adacore.com>
|
||||||
|
|
||||||
PR ada/19419
|
PR ada/19419
|
||||||
|
|
|
@ -603,10 +603,10 @@ gnat_printable_name (tree decl, int verbosity)
|
||||||
if (verbosity == 2)
|
if (verbosity == 2)
|
||||||
{
|
{
|
||||||
Set_Identifier_Casing (ada_name, (char *) DECL_SOURCE_FILE (decl));
|
Set_Identifier_Casing (ada_name, (char *) DECL_SOURCE_FILE (decl));
|
||||||
ada_name = Name_Buffer;
|
return ggc_strdup (Name_Buffer);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
return (const char *) ada_name;
|
return ada_name;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Expands GNAT-specific GCC tree nodes. The only ones we support
|
/* Expands GNAT-specific GCC tree nodes. The only ones we support
|
||||||
|
|
Loading…
Reference in New Issue