This patch removed `make_decl_rtl` at function start. Making RTL at start leads to fixed suffix and assmbly name in the constant pool.
It will finally be called in all my testcases since we will check it whenever using the DECL_RTL macro. Signed-off-by: ZAMBAR <zam...@163.com> gcc/fortran/ChangeLog: * trans-decl.cc (trans_function_start): Remove call make_decl_rtl. --- gcc/fortran/trans-decl.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/fortran/trans-decl.cc b/gcc/fortran/trans-decl.cc index bf37b13830a..cb192694f08 100644 --- a/gcc/fortran/trans-decl.cc +++ b/gcc/fortran/trans-decl.cc @@ -3071,7 +3071,7 @@ trans_function_start (gfc_symbol * sym) } /* Create RTL for function definition. */ - make_decl_rtl (fndecl); + // make_decl_rtl (fndecl); allocate_struct_function (fndecl, false); -- 2.34.1