On 17 January 2013 10:35, John Baldwin <j...@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
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to