This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: FW: Remaining Itanium exception, static linking patches
- From: Franz Sirl <Franz dot Sirl-kernel at lauterbach dot com>
- To: "Boehm, Hans" <hans_boehm at hp dot com>,"'Andrew Haley'" <aph at cambridge dot redhat dot com>,"MOSBERGER, DAVID (HP-PaloAlto,unix3)" <davidm at hpl dot hp dot com>
- Cc: "Boehm, Hans" <hans_boehm at hp dot com>,"'rth at redhat dot com'" <rth at redhat dot com>,"'gcc at gcc dot gnu dot org'" <gcc at gcc dot gnu dot org>,"'tromey at redhat dot com'" <tromey at redhat dot com>
- Date: Tue, 26 Mar 2002 20:32:24 +0100
- Subject: Re: FW: Remaining Itanium exception, static linking patches
- References: <40700B4C02ABD5119F000090278766443BF0DE@hplex1.hpl.hp.com>
On Saturday 23 March 2002 03:13, Boehm, Hans wrote:
> Index: libjava/include/dwarf2-signal.h
> ===================================================================
> RCS file: /cvs/gcc/gcc/libjava/include/dwarf2-signal.h,v
> retrieving revision 1.3
> diff -u -r1.3 dwarf2-signal.h
> --- dwarf2-signal.h 2001/05/29 17:50:50 1.3
> +++ dwarf2-signal.h 2002/03/23 01:42:50
> @@ -41,7 +41,22 @@
> _sc->sc_pc += 4; \
> } \
> while (0)
> +
> +#elif defined(__ia64__)
> +
> +#define MAKE_THROW_FRAME(_exception) \
> +do \
> +{ \
> + /* IA-64 either leaves PC pointing at a faulting instruction or the \
> + following instruction, depending on the signal. SEGV always does \
> + the former, so we adjust the saved PC to point to the following \
> + instruction; this is what the handler in libgcc expects. */
> \
> + struct sigcontext *_sc = (struct sigcontext *)_p; \
> + _sc->sc_ip++; /* fprintf (stderr, "%p si:%p sc:%p\n",
> _sc->sc_ip, si, _p); */ \
> +} \
> +while (0)
> #else
> +#error
What is this #error good for? It breaks bootstrap on powerpc-linux-gnu.
Franz.