This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [basic-improvements] try/finally support for c/c++


Aldy Hernandez <aldyh@redhat.com> writes:

> As promised.  Here are the try/finally patches for C and C++.

Finally!  :-)

> Index: Makefile.in
> ===================================================================
> RCS file: /cvs/gcc/gcc/gcc/Makefile.in,v
> retrieving revision 1.939.2.10
> diff -c -p -r1.939.2.10 Makefile.in
> *** Makefile.in	21 Oct 2002 17:51:50 -0000	1.939.2.10
> --- Makefile.in	5 Nov 2002 23:01:34 -0000
> *************** CRTSTUFF_CFLAGS = -O2 $(GCC_CFLAGS) $(IN
> *** 399,405 ****
>   
>   # Additional sources to handle exceptions; overridden by targets as needed.
>   LIB2ADDEH = $(srcdir)/unwind-dw2.c $(srcdir)/unwind-dw2-fde.c \
> !   $(srcdir)/unwind-sjlj.c
>   LIB2ADDEHDEP = unwind.inc unwind-dw2-fde.h
>   
>   # nm flags to list global symbols in libgcc object files.
> --- 399,405 ----
>   
>   # Additional sources to handle exceptions; overridden by targets as needed.
>   LIB2ADDEH = $(srcdir)/unwind-dw2.c $(srcdir)/unwind-dw2-fde.c \
> !   $(srcdir)/unwind-sjlj.c $(srcdir)/unwind-c.c
>   LIB2ADDEHDEP = unwind.inc unwind-dw2-fde.h

Please don't:

- Call this file 'unwind-c.c'.  That might lead people to think it had
  something to do with stack unwinding, and it doesn't, it happens
  after that.  Instead, call it something like 'eh-personality-c.c'.
- Add this file in LIB2ADDEH.  It is needed on all targets, so
  it should go in LIB2FUNCS_*.  (You'll understand this more when I post
  the patch I just finished writing for EH support on Darwin.)

-- 
- Geoffrey Keating <geoffk@geoffk.org>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]