[fpc-devel] Sorry for poor testing

Pierre Muller pierre at freepascal.org
Mon Jan 14 19:17:21 CET 2019


Hi all,


Le 14/01/2019 à 15:01, J. Gareth Moreton a écrit :
> Hi everyone,
> 
> I apologise I didn't properly test my case block improvements, especially where optimising for size is concerned.  As someone who has worked in SQA, I should have known better.
> 
> I've also spotted a potential overflow condition (in some situations, max_dist can become negative) - this is thankfully disguised, but I would like to properly trap it and handle it cleanly and safely.

  You should try to add
  -CriotR to OPT when cycliing the compiler,
as it might find the overfows for you...
and even also do
make  fullcycle OPT="-n -CriotR -gl"
as testing the change for 16 bit address
CPU can also reveal more range checking/overflow exceptions.

Pierre




More information about the fpc-devel mailing list