[fpc-devel] Submitted bug report on option order -Sa -Sg-

Jonas Maebe jonas.maebe at elis.ugent.be
Sat Apr 14 18:56:12 CEST 2007


On 13 Apr 2007, at 17:38, Tom Verhoeff wrote:

> The order -Sa -Sg- fails to generate assertion checking code, whereas
> this is generated for the order -Sg- -Sa.
>
> A separate test confirms this (mis)behavior (see bug report: Steps To
> Reproduce).
>
> Or am I missing the obvious, and is this really a feature and not a  
> bug?

-S- disables all the -S options, regardless of where the second -  
appears (like -O- disables all -O options). This can indeed be  
confusing, since e.g. -Cor- turns on overflow checking, but disables  
range checking. This is indeed not consistent. Both cases work as  
designed, but the design is obviously not optimal.


Jonas



More information about the fpc-devel mailing list