浏览代码

+ check for tf_init_final_units_by_calls in trv32nodeutils.insert_init_final_table

florian 1 年之前
父节点
当前提交
fbf20eee31
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      compiler/riscv32/nrv32util.pas

+ 5 - 0
compiler/riscv32/nrv32util.pas

@@ -93,6 +93,11 @@ implementation
       i : longint;
       ref:treference;
     begin
+      if not(tf_init_final_units_by_calls in target_info.flags) then
+        begin
+          inherited insert_init_final_table(main,entries);
+          exit;
+        end;
       initList:=TAsmList.create;
       finalList:=TAsmList.create;