[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn commit: r1725957 - /subversion/trunk/subversion/svn/merge-cmd.c

From: Philip Martin <philip.martin_at_wandisco.com>
Date: Thu, 21 Jan 2016 18:04:29 +0000

Stefan Sperling <stsp_at_elego.de> writes:

>> The scope does matter: the C standard specifies that the lifetime of an
>> object "extends from entry into the block with which it is associated
>> until execution of that block ends" [6.2.4]. An optimising compiler is
>> free to reuse stack slots once out of scope, either for other stack
>> variables or for stack space to call a function.
> Interesting. I stand corrected, thanks!

gcc implements this optimisation and has -fstack-reuse to control it:


Philip Martin
Received on 2016-01-21 19:04:43 CET

This is an archived mail posted to the Subversion Dev mailing list.