On Wed, 19 Jun 2013, David Edelsohn wrote:

> A 2011 change to collect2 to use the standard diagnostics
> infrastructure broke collect2's cleanup of temp files when an error
> occurs.  This prototype of a patch implements the minimal conversion
> of collect2 to use atexit().
> 
> If this is the right direction, all calls to collect_exit() can be
> converted to exit().
> 
> Thanks, David
> 
>         PR driver/57652
>         * collect2.c (collect_atexit): New.
>         (collect_exit): Directly call exit.
>         (main): Register collect_atexit with atexit.
This is OK.  Using atexit seems to me to be the right approach for such 
cleanup.

-- 
Joseph S. Myers
jos...@codesourcery.com

Reply via email to