This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Alpha/VMS Condition Handling
- From: Douglas B Rupp <rupp at gnat dot com>
- To: Richard Henderson <rth at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Sun, 09 Aug 2009 21:29:42 -0700
- Subject: Re: [PATCH] Alpha/VMS Condition Handling
- References: <4A7E08D0.1050306@gnat.com> <4A7F01CC.3000503@redhat.com>
Richard Henderson wrote:
On 08/08/2009 04:22 PM, Douglas B Rupp wrote:
+ ftype = build_function_type_list (ptr_type_node, ptr_type_node,
NULL_TREE);
+ add_builtin_function ("__builtin_establish_vms_condition_handler",
ftype,
+ ALPHA_BUILTIN_ESTABLISH_VMS_CONDITION_HANDLER, BUILT_IN_MD,
+ NULL, NULL_TREE);
+
+ ftype = build_function_type_list (ptr_type_node, void_type_node,
NULL_TREE);
+ add_builtin_function ("__builtin_revert_vms_condition_handler", ftype,
+ ALPHA_BUILTIN_REVERT_VMS_CONDITION_HANDLER, BUILT_IN_MD,
+ NULL, NULL_TREE);
+
This bit needs to be if VMS, since otherwise we'll just run into the
define_insns that are conditionalized on VMS and abort on an
unrecognized insn.
I guess the rest is ok, though I'm curious from whence these builtins
get called...
ada/trans.c calls establish. Not sure we revert anywhere currently.