Re: [PATCH] nvptx backend: fix and streamline symbol renaming

2016-03-31 Thread Nathan Sidwell
On 03/31/16 07:18, Alexander Monakov wrote: This fixes a bug in the NVPTX backend where taking the address of a function renamed by the backend (e.g. 'call' or 'malloc') would wrongly use the original name. Now all decl renaming is handled up front via TARGET_MANGLE_DECL_ASSEMBLER_NAME hook, whic

[PATCH] nvptx backend: fix and streamline symbol renaming

2016-03-31 Thread Alexander Monakov
This fixes a bug in the NVPTX backend where taking the address of a function renamed by the backend (e.g. 'call' or 'malloc') would wrongly use the original name. Now all decl renaming is handled up front via TARGET_MANGLE_DECL_ASSEMBLER_NAME hook, which becomes the only caller of nvptx_name_replac