Skip to content
This repository has been archived by the owner on Jun 20, 2019. It is now read-only.

Commit

Permalink
Merge pull request #205 from ibuclaw/bug223
Browse files Browse the repository at this point in the history
Bug 223: [ARM] Fix ICE in operand_equal_p, at fold-const.c:2934
  • Loading branch information
ibuclaw committed May 15, 2016
2 parents 2f7adad + 1c1da4c commit 369de55
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions gcc/d/ChangeLog
@@ -1,3 +1,8 @@
2016-05-15 Iain Buclaw <ibuclaw@gdcproject.org>

* expr.cc (ExprVisitor::visit(IdentityExp*)): Remove side-effects
before comparing two dynamic arrays.

2016-05-14 Iain Buclaw <ibuclaw@gdcproject.org>

* d-codegen.cc (get_decl_tree): First check if cfun is set.
Expand Down
2 changes: 2 additions & 0 deletions gcc/d/expr.cc
Expand Up @@ -117,7 +117,9 @@ class ExprVisitor : public Visitor
{
// Convert arrays to D array types.
tree t1 = d_array_convert(e->e1);
t1 = maybe_make_temp(t1);
tree t2 = d_array_convert(e->e2);
t2 = maybe_make_temp(t2);
this->result_ = build2(code, build_ctype(e->type), t1, t2);
}
else if (tb1->isfloating())
Expand Down

0 comments on commit 369de55

Please sign in to comment.