2017-12-06 Martin Sebor <msebor@redhat.com>
+ PR testsuite/83303
+ * g++.dg/opt/new1.C: Prune warning from test output.
+
PR tree-optimization/82646
* gcc.dg/builtin-stringop-chk-1.c: Adjust.
* gcc.dg/builtin-stringop-chk-9.c: New test.
-// PR c++/39367
+// PR c++/39367 - ICE at tree-inline.c:1042 with -O
// { dg-options "-O" }
class QScriptEnginePrivate;
reserve (s << 1);
}
template <typename T> void QScript::Buffer<T>::reserve(int x) {
+ /* The following may be optimized into a trap because the function
+ is called from resize(0) and so with m_capacity < 0. When not
+ optimized it may trigger -Walloc-size-larger-than= since
+ operator new() is called with an excessively large value.
+ The warning is pruned from the test output below. */
T *new_data = new T[m_capacity];
for (int i=0; i<m_size; ++i)
new_data[i] = m_data[i];
}
}
}
+
+// { dg-prune-output "\\\[-Walloc-size-larger-than=]" }