On Fri, Jul 1, 2011 at 7:25 AM, Rainer Orth <r...@cebitec.uni-bielefeld.de> wrote: > "H.J. Lu" <hjl.to...@gmail.com> writes: > >>> Then move it below the definition of struct _Unwind_Context with a >> >> It won't work since I need to define a macro before struct _Unwind_Context. > > Then this does seem to be a case for libgcc_tm_file indeed. Ugly that > the unwinder configuration has to be split between two different files > this way, but unavoidable, it seems. At least when libgcc_tm_file moves > to libgcc/config.host, it won't any longer be split between gcc and libgcc. >
We need target support for unwind: 1. Target configuration. 2. Target implementation. Unfortunately, they can't be put in the same file. If we really want to use the same file, we can add some macros like: UNWIND_CONFIGURE UNWIND_IMPLEMENT and we can include the same file twice. -- H.J.