This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] to libiberty: provide atexit for original UNIX systems
- To: msokolov at ivan dot Harhan dot ORG
- Subject: Re: [patch] to libiberty: provide atexit for original UNIX systems
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Date: Sun, 24 Dec 2000 21:31:00 -0500 (EST)
- Cc: gcc-patches at gcc dot gnu dot org
> 2000-12-24 Michael Sokolov <msokolov@ivan.Harhan.ORG>
>
> * atexit.c [!HAVE_ON_EXIT]: Provide our own atexit assuming the
> original UNIX exit implementation.
IMHO, this is the wrong approach. You're adding an inherently
un-portable fallback to libiberty (on_exit notwithstanding.)
Instead of doing that, you should change fixinc to use libiberty's
xatexit/xexit pair.
--Kaveh
--
Kaveh R. Ghazi Engagement Manager / Project Services
ghazi@caip.rutgers.edu Qwest Internet Solutions