+2016-10-17 Martin Liska <mliska@suse.cz>
+
+ Backported from mainline
+ 2016-10-13 Martin Liska <mliska@suse.cz>
+
+ PR tree-optimization/77943
+ * tree-ssa-tail-merge.c (merge_stmts_p): Do not merge BBs with
+ a different EH landing pads.
+
2016-10-16 Eric Botcazou <ebotcazou@adacore.com>
* config/sparc/sparc.c (sparc_expand_vector_init): Only accept literal
+2016-10-17 Martin Liska <mliska@suse.cz>
+
+ Backported from mainline
+ 2016-10-13 Martin Liska <mliska@suse.cz>
+
+ PR tree-optimization/77943
+ * g++.dg/tree-ssa/pr77943.C: New test.
+
2016-10-15 Eric Botcazou <ebotcazou@adacore.com>
* gcc.target/sparc/bmaskbshuf.c: Rename to...
--- /dev/null
+/* { dg-do run } */
+/* { dg-options "-O2 -std=c++11" } */
+
+void thrower[[gnu::noinline]]() {
+ throw 1;
+}
+
+inline void fatal() noexcept {thrower();}
+inline void notFatal() {thrower();}
+
+void func(bool callFatal) {
+ if (callFatal) {
+ fatal();
+ } else {
+ notFatal();
+ }
+}
+
+int main(int argc, const char* argv[]) {
+ try {
+ bool callFatal = argc > 1;
+ func(callFatal);
+ } catch (...) {
+ }
+}
#include "trans-mem.h"
#include "stringpool.h"
#include "tree-ssanames.h"
+#include "tree-eh.h"
/* Describes a group of bbs with the same successors. The successor bbs are
cached in succs, and the successor edge flags are cached in succ_flags.
|| is_tm_ending (stmt2))
return;
+ /* Verify EH landing pads. */
+ if (lookup_stmt_eh_lp_fn (cfun, stmt1)
+ != lookup_stmt_eh_lp_fn (cfun, stmt2))
+ return;
+
if (!gimple_equal_p (same_succ, stmt1, stmt2))
return;