Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2016-10

Compiler option -gt (Trash local variables)

4 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Jonas Maebe
to Graeme Geldenhuys

Graeme Geldenhuys wrote on Mon, 17 Oct 2016:

How well does the -gt compiler option work?

I don't think there are any known bugs with it in either 3.0 or trunk. 3.0 does not trash ansi/unicodestring function results though, while trunk does.

Is it worth enabling during debugging?

I think so, yes.

Jonas

Reply by email

Graeme Geldenhuys
to Marco van de Voort
Marco van de Voort wrote
I've used it in debugging/hardening fpdoc a few years ago, and had good experiences. I also benefited a lot from -CR

Thank you both Marco and Jonas. I only discovered the setting over the weekend, and it does seem like a useful option to use while debugging.

Regards,
Graeme

Reply by email