This is the mail archive of the gcc-patches@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: [PATCH] Alpha/VMS Condition Handling


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...


r~



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