Browse Source

* initialize current_settings as early as possible so cs_debugswitch is set correctly if needed

git-svn-id: trunk@48676 -
florian 4 years ago
parent
commit
c3fb1e3a65
1 changed files with 4 additions and 3 deletions
  1. 4 3
      compiler/parser.pas

+ 4 - 3
compiler/parser.pas

@@ -354,6 +354,10 @@ implementation
          exceptblockcounter:=0;
          current_settings.maxfpuregisters:=-1;
          current_settings.pmessage:=nil;
+
+         { Load current state from the init values }
+         current_settings:=init_settings;
+
        { reset the unit or create a new program }
          { a unit compiled at command line must be inside the loaded_unit list }
          if (compile_level=1) then
@@ -369,9 +373,6 @@ implementation
                 (current_module.state in [ms_compile,ms_second_compile])) then
            internalerror(200212281);
 
-         { Load current state from the init values }
-         current_settings:=init_settings;
-
          { load current asmdata from current_module }
          current_asmdata:=TAsmData(current_module.asmdata);