浏览代码

Try to avoid clang error on global labels inside .cfi_start/.cfi_end pairs

Pierre Muller 7 月之前
父节点
当前提交
13a5cdb8fa
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      compiler/rautils.pas

+ 2 - 1
compiler/rautils.pas

@@ -1781,7 +1781,8 @@ Begin
       begin
       begin
         if symtablestack.top.symtablelevel<>srsymtable.symtablelevel then
         if symtablestack.top.symtablelevel<>srsymtable.symtablelevel then
           begin
           begin
-            Tlabelsym(sym).nonlocal:=true;
+            if (srsymtable.symtabletype=globalsymtable) or create_smartlink_library then
+              Tlabelsym(sym).nonlocal:=true;
             if emit then
             if emit then
               include(current_procinfo.flags,pi_has_interproclabel);
               include(current_procinfo.flags,pi_has_interproclabel);
           end;
           end;