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]

[committed] Fix objc/23381, objc exceptions are broken for next runtime (sjlj exceptions)


The problem here is that the objc front-end is creating a BIND_EXPR
piece wise without setting TREE_SIDE_EFFECTS for that BIND_EXPR so
it never gets its TREE_SIDE_EFFECTS correctly set.  TREE_SIDE_EFFECTS
will all ways be true for this BIND_EXPR so I did feel the need to
call recalculate_side_effects on it after assigning the body.

I committed this as obvious after a build and test of the objc
front-end with no regressions on powerpc-darwin.

Thanks,
Andrew Pinski

ChangeLog:

	* objc-act.c (next_sjlj_build_try_catch_finally): Set
	TREE_SIDE_EFFECTS on catch_seq after building it.


Attachment: t.diff.txt
Description: Text document


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