This patch is a preparation for the function multi-versioning support in Fortran. The function multi-versioning support requires changing the change_decl_assembler_name to add the target suffix, which is not allowed after make_decl_rtl is called, since the assembler name will be in the constant pool.
This patch removes the make_decl_rtl call in trans_function_start, and it will finally be called in all my testcases since we will check it whenever using the DECL_RTL macro. Signed-off-by: Yangyu Chen <c...@cyyself.name> gcc/fortran/ChangeLog: * trans-decl.cc (trans_function_start): Remove call make_decl_rtl. --- gcc/fortran/trans-decl.cc | 3 --- 1 file changed, 3 deletions(-) diff --git a/gcc/fortran/trans-decl.cc b/gcc/fortran/trans-decl.cc index 43bd7be54cb..bcd4a23e16e 100644 --- a/gcc/fortran/trans-decl.cc +++ b/gcc/fortran/trans-decl.cc @@ -3048,9 +3048,6 @@ trans_function_start (gfc_symbol * sym) rest_of_decl_compilation (fndecl, 1, 0); } - /* Create RTL for function definition. */ - make_decl_rtl (fndecl); - allocate_struct_function (fndecl, false); /* function.cc requires a push at the start of the function. */ -- 2.49.0