regexpr: disable forced optimisation switch

This should be specifiable via (fp)make
This commit is contained in:
Jonas Maebe 2022-06-10 22:09:55 +02:00
parent e6b8aa07d7
commit ae36829ecd

View File

@ -69,7 +69,7 @@ interface
{$BOOLEVAL OFF} {$BOOLEVAL OFF}
{$EXTENDEDSYNTAX ON} {$EXTENDEDSYNTAX ON}
{$LONGSTRINGS ON} {$LONGSTRINGS ON}
{$OPTIMIZATION ON} { OPTIMIZATION ON} // Handled by (fp)make options
{$MODE DELPHI} // Delphi-compatible mode in FreePascal {$MODE DELPHI} // Delphi-compatible mode in FreePascal
{$INLINE ON} {$INLINE ON}
{$DEFINE COMPAT} {$DEFINE COMPAT}
@ -6864,7 +6864,7 @@ begin
end; end;
{$IFDEF reRealExceptionAddr} {$IFDEF reRealExceptionAddr}
{$OPTIMIZATION ON} { OPTIMIZATION ON} // specified via (fp)make
// ReturnAddr works correctly only if compiler optimization is ON // ReturnAddr works correctly only if compiler optimization is ON
// I placed this method at very end of unit because there are no // I placed this method at very end of unit because there are no
// way to restore compiler optimization flag ... // way to restore compiler optimization flag ...