Re: [PATCH v5] Introduce attribute sym_alias

2023-11-22 Thread Joseph Myers
Is it OK to apply this attribute to a (file-scope or block-scope) static variable or function in C (and if it is, what's the linkage of the resulting alias)? That doesn't seem very clear to me from the documentation, and I'd also expect a testcase of this, whatever the answer is. What's the i

Re: [PATCH v5] Introduce attribute sym_alias (was: Last call for bikeshedding on attribute sym/exalias/reverse_alias)

2023-11-22 Thread Jan Hubicka
Hi, it seems that interface to symbol table is fairly minimal here reduced to... > (create_sym_alias_decl, create_sym_alias_decls): New. > * cgraphunit.cc (cgraph_node::analyze): Create alias_target > node if needed. called from here... > (analyze_functions): Fixup visibilit

Re: [PATCH v5] Introduce attribute sym_alias

2023-11-22 Thread Richard Biener
On Mon, Nov 20, 2023 at 1:54 PM Alexandre Oliva wrote: > > On Sep 20, 2023, Alexandre Oliva wrote: > > > This patch introduces an attribute to add extra asm names (aliases) > > for a decl when its definition is output. > > Ping? > https://gcc.gnu.org/pipermail/gcc-patches/2023-September/630971.ht

Re: [PATCH v5] Introduce attribute sym_alias

2023-11-20 Thread Alexandre Oliva
On Sep 20, 2023, Alexandre Oliva wrote: > This patch introduces an attribute to add extra asm names (aliases) > for a decl when its definition is output. Ping? https://gcc.gnu.org/pipermail/gcc-patches/2023-September/630971.html Re-regstrapped on x86_64-linux-gnu. Ok to install? -- Alexandre