On Fri, 5 Feb 2021, Sven Barth via fpc-pascal wrote:

Adriaan van Os via fpc-pascal <fpc-pascal@lists.freepascal.org> schrieb am
Fr., 5. Feb. 2021, 10:50:

Adriaan van Os via fpc-pascal wrote:
Jonas Maebe via fpc-pascal wrote:
On 2021-02-05 09:24, Adriaan van Os via fpc-pascal wrote:
It's crazy !
<https://bugs.freepascal.org/view.php?id=38440>

The default fpc.cfg file contains this (both in 3.0.4 and 3.2.0):


Thanks for tne reply.

# For a debug version compile with debuginfo and all codegeneration
checks on
#IFDEF DEBUG
  -gl
  -Crtoi
  #WRITE Compiling Debug Version
#ENDIF

I find such sneaky configuration files an extremely bad idea !

Also

1. Section 1.3.31 of the Programmer's manual says "By default, no stack
checking is performed."


The default of the compiler *without* a configuration file (maybe we should
mention that somewhere in the Programmer's Guide). For example C operators
are disabled by default as well (see Programmer's Guide 1.2.10), but the
default configuration file enables them.

Not sure where the 1.3.31 came from, but stack checking is mentioned in
1.7.72;

https://www.freepascal.org/docs-html/current/prog/progsu72.html#x79-780001.2.72

I added a warning about defaults in the introduction of the section on
directives, as it is valid for all defaults mentioned.

Michael.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to