gcc/testsuite/ChangeLog:
2018-10-29 Kugan Vivekanandarajah <kuganv@linaro.org>
PR middle-end/87469
* g++.dg/pr87469.C: New test.
gcc/ChangeLog:
2018-10-29 Kugan Vivekanandarajah <kuganv@linaro.org>
PR middle-end/87469
* tree-ssa-loop-niter.c (number_of_iterations_popcount): Fix niter
max value.
From-SVN: r265605
+2018-10-29 Kugan Vivekanandarajah <kuganv@linaro.org>
+
+ PR middle-end/87469
+ * tree-ssa-loop-niter.c (number_of_iterations_popcount): Fix niter
+ max value.
+
2018-10-29 Paul A. Clarke <pc@us.ibm.com>
* gcc.target/powerpc/ssse3-check.h: Remove inaccurate comment.
+2018-10-29 Kugan Vivekanandarajah <kuganv@linaro.org>
+
+ PR middle-end/87469
+ * g++.dg/pr87469.C: New test.
+
2018-10-29 Marek Polacek <polacek@redhat.com>
PR c++/87594 - constexpr rejects-valid with range-based for.
--- /dev/null
+/* { dg-do compile } */
+/* { dg-options "-c -w -O2" } */
+long a;
+struct c {
+ void d(unsigned f) {
+ long e = f;
+ while (e & (e - 1))
+ e &= e - 1;
+ a = e;
+ }
+};
+void g() {
+ c b;
+ b.d(4 + 2);
+}
if (TREE_CODE (call) == INTEGER_CST)
max = tree_to_uhwi (call);
else
- {
- max = TYPE_PRECISION (TREE_TYPE (src));
- if (adjust)
- max = max - 1;
- }
+ max = TYPE_PRECISION (TREE_TYPE (src));
+ if (adjust)
+ max = max - 1;
niter->niter = iter;
niter->assumptions = boolean_true_node;