Adriaan van Os wrote:
... snip ...
I checked that MW Pascal behaves like Borland Pascal, so we can add another patch (change B_D_PASCAL to B_D_M_PASCAL here also).
Why is GPC attempting to ape every faulty compiler ever built? There are standards, in ISO 7185 and ISO 10206. The faulty code is faulty, and should be corrected to adhere to standards, which are generally in place for good reason. These attempts to emulate the uncheckable habits of C can only lead to insecure programs.
gpc has extensions, which one would like to think are well thought out and not a security risk. For portability it is necessary to be able to disable these. However the extensions should never deliberately introduce insecurities, as does the attempt to emulate C variadic functions. At the least it should be painful to use an insecure feature.