refs #228: store asm spec and mark hard reg before processing the

template
This commit is contained in:
bebbo 2024-05-08 00:48:14 +02:00
parent c34091089b
commit cc55b3f993

View File

@ -6721,6 +6721,12 @@ cp_finish_decl (tree decl, tree init, bool init_const_expr_p,
}
}
if (VAR_P (decl) && DECL_REGISTER (decl) && asmspec)
{
set_user_assembler_name (decl, asmspec);
DECL_HARD_REGISTER (decl) = 1;
}
if (processing_template_decl)
{
bool type_dependent_p;