@@ -157,7 +157,7 @@ binary_op (tree_code code, tree type, tree arg0, tree arg1)
eptype = type;
}
- ret = fold_build2 (code, eptype, arg0, arg1);
+ ret = build2 (code, eptype, arg0, arg1);
}
return d_convert (type, ret);
new file mode 100644
@@ -0,0 +1,11 @@
+// https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101640
+// { dg-do compile }
+// { dg-options "-fdump-tree-original" }
+
+int fun101640(ref int);
+
+int test101640(int val)
+{
+ // { dg-final { scan-tree-dump "= val \\\+ fun101640 \\\(\\\(int &\\\) &val\\\);" "original" } }
+ return val + fun101640(val);
+}
@@ -3,7 +3,7 @@
// { dg-options "-fdump-tree-original" }
ptrdiff_t subbyte(byte* bp1, byte* bp2)
{
- // { dg-final { scan-tree-dump "bp1 - bp2;" "original" } }
+ // { dg-final { scan-tree-dump "\\\(bp1 - bp2\\\) /\\\[ex\\\] 1;" "original" } }
return bp1 - bp2;
}