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: FW: Remaining Itanium exception, static linking patches


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.


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