This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Problem with ASM_PREFERRED_EH_DATA_FORMAT
- To: Marc dot Espie at liafa dot jussieu dot fr
- Subject: Re: Problem with ASM_PREFERRED_EH_DATA_FORMAT
- From: Richard Henderson <rth at redhat dot com>
- Date: Fri, 6 Jul 2001 16:10:24 -0700
- Cc: gcc-patches at gcc dot gnu dot org
- References: <20010706170725.A15636@schutzenberger.liafa.jussieu.fr> <20010706105356.A1465@redhat.com> <20010707002949.B5697@schutzenberger.liafa.jussieu.fr>
On Sat, Jul 07, 2001 at 12:29:49AM +0200, Marc Espie wrote:
> How do I configure gcc to compile correctly ? since it's now using non-sjlj
> exceptions by default.
It's a bug in except.h that we weren't minding the
#define DWARF2_UNWIND_INFO 0
in config/i386/openbsd.h. I'll apply this to 3.0.1 as well.
That said, I can't urge you strongly enough to upgrade from
the incredibly ancient (and broken) assembler currently in use.
r~
* except.h (MUST_USE_SJLJ_EXCEPTIONS): Examine the value of
DWARF2_UNWIND_INFO not just whether it's defined.
Index: except.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/except.h,v
retrieving revision 1.54
diff -u -p -r1.54 except.h
--- except.h 2001/06/08 22:57:22 1.54
+++ except.h 2001/07/06 23:03:09
@@ -180,7 +180,7 @@ extern tree (*lang_eh_runtime_type) PARA
#if ! (defined (EH_RETURN_DATA_REGNO) \
&& (defined (IA64_UNWIND_INFO) \
- || (defined (DWARF2_UNWIND_INFO) \
+ || (DWARF2_UNWIND_INFO \
&& defined (EH_RETURN_STACKADJ_RTX) \
&& (defined (EH_RETURN_HANDLER_RTX) \
|| defined (HAVE_eh_return)))))