ada: gcc-if: build proper String_Pointer for Get_External_Name
authorAlexandre Oliva <oliva@adacore.com>
Fri, 13 May 2022 10:48:50 +0000 (07:48 -0300)
committerAlexandre Oliva <oliva@gnu.org>
Fri, 13 May 2022 10:48:50 +0000 (07:48 -0300)
commit6aaa1d573912828efed1514fbec5e1ef8a7cc3bc
treee7228d8db053b96f216c7f525d3e5bbec141c15d
parent9a79854be0a81faf76fff073f447c2334d47e819
ada: gcc-if: build proper String_Pointer for Get_External_Name

The compiler is allowed to assume it can access String bounds, such as
the prefix passed to Get_External_Name, even in circumstances in which
the prefix is not going to be used and has_prefix is false, so, from
the C side, we have to build a proper String_Template for the
String_Pointer.

for  gcc/ada/ChangeLog

* gcc-interface/decl.cc (is_cplusplus_method): Build proper
String for Get_External_Name.
gcc/ada/gcc-interface/decl.cc