Browse Source

* ttai_typedconstbuilder.finalize_asmlist(): fixed handling of non-local
symbols that aren't AB_GLOBAL (e.g. AB_PRIVATE_EXTERN)

git-svn-id: trunk@32878 -

Jonas Maebe 9 years ago
parent
commit
1046c995a8
1 changed files with 3 additions and 3 deletions
  1. 3 3
      compiler/aasmcnst.pas

+ 3 - 3
compiler/aasmcnst.pas

@@ -935,10 +935,10 @@ implementation
          end;
          end;
 
 
        if not(tcalo_is_lab in options) then
        if not(tcalo_is_lab in options) then
-         if sym.bind=AB_GLOBAL then
-           prelist.concat(tai_symbol.Create_Global(sym,0))
-         else
+         if sym.bind=AB_LOCAL then
            prelist.concat(tai_symbol.Create(sym,0))
            prelist.concat(tai_symbol.Create(sym,0))
+         else
+           prelist.concat(tai_symbol.Create_Global(sym,0))
        else
        else
          prelist.concat(tai_label.Create(tasmlabel(sym)));
          prelist.concat(tai_label.Create(tasmlabel(sym)));
        { insert the symbol information before the data }
        { insert the symbol information before the data }