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