gcc/testsuite/ChangeLog:
PR jit/81144
* jit.dg/test-operator-overloading.cc (make_test_quadratic): Replace
memset call with zero-initialization.
* jit.dg/test-quadratic.cc (make_test_quadratic): Likewise.
From-SVN: r249427
+2017-06-20 David Malcolm <dmalcolm@redhat.com>
+
+ PR jit/81144
+ * jit.dg/test-operator-overloading.cc (make_test_quadratic): Replace
+ memset call with zero-initialization.
+ * jit.dg/test-quadratic.cc (make_test_quadratic): Likewise.
+
2017-06-20 Uros Bizjak <ubizjak@gmail.com>
* gcc.target/i386/pr80732.c: Include fma4-check.h.
void
create_code (gcc_jit_context *ctxt, void *user_data)
{
- struct quadratic_test testcase;
- memset (&testcase, 0, sizeof (testcase));
+ struct quadratic_test testcase = {};
testcase.ctxt = ctxt;
make_types (testcase);
make_sqrt (testcase);
void
create_code (gcc_jit_context *ctxt, void *user_data)
{
- struct quadratic_test testcase;
- memset (&testcase, 0, sizeof (testcase));
+ struct quadratic_test testcase = {};
testcase.ctxt = ctxt;
make_types (testcase);
make_sqrt (testcase);