[fpc-devel] Are "C style operators" default or not?

Mark Morgan Lloyd markMLl.fpc-devel at telemetry.co.uk
Tue Mar 27 11:30:59 CEST 2012

Sven Barth wrote:
> Am 27.03.2012 10:16, schrieb Patrick Chevalley:
>> If you build your fpc.cfg using fpcmkcfg with the default template it
>> add -Sgic.
>> So C operator, C++ inline and goto are activated.
> I don't consider the config file as a base for default.

In the specific case of FPC, I agree.

In the general case, I agree except for cases where a configuration file 
is signed/checksummed so as to be intimately associated with the binaries.

> While most users might use that config file there could be users that don't.

Although once FPC's been installed as a binary on a given system a 
tailored fpc.cfg will exist, so it's very easy to forget about it when 
subsequently building from source.

> Also it's perfectly legal to use fpc with "-n" which tell to compiler to
> not load a config file at all.

Although in this case you'll fairly rapidly have problems with some of 
the system libraries. In general fpcmkcfg etc. does a sterling job of 
working out where everything is, although I had a bit of grief with this 
with Solaris a year or so ago.

Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]

More information about the fpc-devel mailing list