svn commit: r245494 - head/bin/pwait
Eitan Adler
eadler at freebsd.org
Thu Jan 17 18:48:36 UTC 2013
On 17 January 2013 10:35, John Baldwin <jhb at freebsd.org> wrote:
> No, it is clearly a bug. It is a waste of time and adds obfuscation (and
> runtime overhead) to go free a bunch of stuff just before a return() from
> main().
It is by-design according to the clang folks. They have expressed in
interest in offering a knob to change this behavior, but I do not know
the status of it. That said, I believe Xin's recent commit fixed the
issue of adding an additional free.
IMHO the compiler should also be able to optimize this case of free out.
FWIW I have a very strong feeling of Déjà vu here: we have discussed
this exact type of change before.
--
Eitan Adler
Source, Ports, Doc committer
Bugmeister, Ports Security teams
More information about the svn-src-all
mailing list