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,c++] introduce cp_build_function_call_nary


On Mon, May 31, 2010 at 04:30:50PM +0100, IainS wrote:
> On 26 May 2010, at 13:55, Nathan Froyd wrote:
>> Thank you.  Taking apart
>> objc_build_message_expr/objc_finish_message_expr (oh, hi there
>> objcp_tsubst_copy_and_build!) looks a bit scary and certain to break
>> things if not done carefully.
>
> if that corresponds to r160066,
> then I'm afraid it broke try-catch handling in ObjC/C++.
> I will take a look ASAP (but work deadlines this week).
>
> that code is _not_ my favorite part of objc-act.c ;-)

r160066 is converting build_function_type -> build_function_type_list.
I don't have a Darwin box handy at the moment, but I think this patch
will fix things.  Could you try it out and report back?

-Nathan

Index: objc-act.c
===================================================================
--- objc-act.c	(revision 160066)
+++ objc-act.c	(working copy)
@@ -4092,7 +4092,7 @@ build_next_objc_exception_stuff (void)
   /* int _setjmp(...); */
   /* If the user includes <setjmp.h>, this shall be superseded by
      'int _setjmp(jmp_buf);' */
-  temp_type = build_function_type_list (integer_type_node, NULL_TREE);
+  temp_type = build_varargs_function_type_list (integer_type_node, NULL_TREE);
   objc_setjmp_decl
     = add_builtin_function (TAG_SETJMP, temp_type, 0, NOT_BUILT_IN, NULL, NULL_TREE);
 


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