+2014-11-13 Teresa Johnson <tejohnson@google.com>
+
+ PR tree-optimization/63841
+ * tree-ssa-strlen.c (strlen_optimize_stmt): Ignore clobbers.
+
2014-11-14 Bin Cheng <bin.cheng@arm.com>
* timevar.def (TV_SCHED_FUSION): New time var.
* ipa-profile.c: Likewise.
* tree-ssa-loop-ivcanon.c: Fix typo in comments and debugging dumps.
+2014-11-13 Teresa Johnson <tejohnson@google.com>
+
+ PR tree-optimization/63841
+ * tree-ssa-strlen.c (strlen_optimize_stmt): Ignore clobbers.
+
2014-11-13 Teresa Johnson <tejohnson@google.com>
PR tree-optimization/63841
+2014-11-13 Teresa Johnson <tejohnson@google.com>
+
+ PR tree-optimization/63841
+ * g++.dg/tree-ssa/pr63841.C: Remove prints, use abort.
+
2014-11-14 Bin Cheng <bin.cheng@arm.com>
* gcc.target/arm/ldrd-strd-pair-1.c: New test.
PR debug/63581
* g++.dg/tree-prof/pr63581.C: New test.
+2014-11-13 Teresa Johnson <tejohnson@google.com>
+
+ PR tree-optimization/63841
+ * g++.dg/tree-ssa/pr63841.C: Remove prints, use abort.
+
2014-11-13 Teresa Johnson <tejohnson@google.com>
PR tree-optimization/63841
/* { dg-do run } */
/* { dg-options "-O2" } */
-#include <cstdio>
#include <string>
std::string __attribute__ ((noinline)) comp_test_write() {
int main() {
std::string good = comp_test_write_good();
- printf("expected: %hx\n", *(short*)good.c_str());
-
std::string bad = comp_test_write();
- printf("got: %hx\n", *(short*)bad.c_str());
- return good != bad;
+ if (good != bad)
+ __builtin_abort ();
}
break;
}
}
- else if (is_gimple_assign (stmt))
+ else if (is_gimple_assign (stmt) && !gimple_clobber_p (stmt))
{
tree lhs = gimple_assign_lhs (stmt);