Sunzir Deepur writes: > Hi Andrew, > > On 10/20/07, Andrew Haley <aph-gcc@xxxxxxxxxxxxxxxxxxx> wrote: > > Sunzir Deepur writes: > > > I have noticed that glibc has extensive use of the _Unwind_Resume procedure > > > Can anyone please explain me what is it ? why is it needed for C programs > > > > It's needed for pthread_cancel. > > It resumes unwinding after a cleanup. > > > > http://www.codesourcery.com/cxx-abi/abi-eh.html > > http://www.mit.edu/~sipb-iap/2004/inside-c/day3/exceptions.html > > Is the winding relevant only to C++ exception catching ? > If so, why would it be needed when compiling simple C apps ? I don't know that it is. > Thank you (and sorry for posting initialy at gcc@xxxxxxxxxxx), I'm sure you can't have had time to read those references I sent you. Have a look at what pthread_cancel does. Have a look at what pthread_cleanup_push does. Andrew.