This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [RFC] Centralize knowledge of eh personality routines
- From: Eric Botcazou <ebotcazou at adacore dot com>
- To: Richard Henderson <rth at redhat dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>, rguenther at suse dot de, joseph at codesourcery dot com, jason at redhat dot com, java at gcc dot gnu dot org, ian at airs dot com, Olivier Hainque <hainque at adacore dot com>
- Date: Wed, 13 Oct 2010 09:02:59 +0200
- Subject: Re: [RFC] Centralize knowledge of eh personality routines
- References: <4CB4E841.1090308@redhat.com>
> The driver for this patch is SEH, which will add yet another function
> name variant in each of these places in each front end. While I could
> adjust each language appropriately, it seems to me that it is a bit
> cleaner to centralize this knowledge.
-/* Build a decl for a EH personality function named NAME. */
+/* Build a personality function given a language. LANG is really an
+ enum dwarf_source_language. */
Left-overs from when it was only an integer?
+ case DW_LANG_Ada83:
+ case DW_LANG_Ada95:
+ prefix = "__gnat_eh_personality";
+ /* The GNAT folk did not follow the standard naming format.
+ That can change if we ever have to increment the version. */
+ if (ui == UI_DWARF2 || ui == UI_TARGET)
+ unwind = "";
+ version = "";
+ break;
Let's change that right now, we don't guarantee any ABI compatibility between
different major releases. Olivier, any objections?
--
Eric Botcazou