On 3/4/21 9:54 PM, Jason Merrill wrote:
On 3/4/21 10:52 AM, Martin Liška wrote:
On 3/4/21 4:45 PM, Jason Merrill wrote:
Sure, I guess you do need to set that flag for the local decls, but that should
be all.
Jason
Doing that also fails :/
This time likely due to how we set RECORD argument of maybe_version_functions
function:
gcc/cp/decl.c: && maybe_version_functions (newdecl, olddecl,
gcc/cp/decl.c- (!DECL_FUNCTION_VERSIONED
(newdecl)
gcc/cp/decl.c- || !DECL_FUNCTION_VERSIONED
(olddecl))))
That is odd.
The other problem is that DECL_LOCAL_DECL_ALIAS isn't always set before we get
to maybe_version_functions; it's set further down in do_pushdecl. We need it
to be set or things break.
Oh, I see.
This seems to work for me, what do you think?
Seems good to me, please apply the patch.
BTW, your patch was corrupted by the mailer, so I had to apply it by hand.
I know, I made a quick dirty copy&paste ... sorry.
Thanks for help,
Martin