Pārlūkot izejas kodu

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

(cherry picked from commit 13a5cdb8fab5e1bd98c7808206e140e6fd1a38ab)
(cherry picked from commit 7fc1f697e9c9a66256b46445fcfb2a4e1139445c)
Pierre Muller 8 mēneši atpakaļ
vecāks
revīzija
56baf314b5
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. 2 1
      compiler/rautils.pas

+ 2 - 1
compiler/rautils.pas

@@ -1656,7 +1656,8 @@ Begin
       begin
         if symtablestack.top.symtablelevel<>srsymtable.symtablelevel then
           begin
-            Tlabelsym(sym).nonlocal:=true;
+            if (srsymtable.symtabletype=globalsymtable) or create_smartlink_library then
+              Tlabelsym(sym).nonlocal:=true;
             if emit then
               exclude(current_procinfo.procdef.procoptions,po_inline);
           end;