add -gx to add stack smash code

2013-01-23 Thread Walter Bright
https://github.com/D-Programming-Language/dmd/pull/1542 I haven't noticed any other compiler with this feature. What it does is upon function exit, it 'smashes' all the memory used for local variables. The idea is to flush out any dependencies on the now-out-of-scope stack frame. Throw this

Re: add -gx to add stack smash code

2013-01-23 Thread angel
On Thursday, 24 January 2013 at 05:32:55 UTC, Walter Bright wrote: https://github.com/D-Programming-Language/dmd/pull/1542 I haven't noticed any other compiler with this feature. What it Strange ... Privately, I have thought of this for years. Kudos !

Re: add -gx to add stack smash code

2013-01-23 Thread Jacob Carlborg
On 2013-01-24 06:32, Walter Bright wrote: https://github.com/D-Programming-Language/dmd/pull/1542 I haven't noticed any other compiler with this feature. What it does is upon function exit, it 'smashes' all the memory used for local variables. The idea is to flush out any dependencies on the