From 946a444df340609663975c998edc8dfa47284c38 Mon Sep 17 00:00:00 2001 From: Roman Zhuykov Date: Sun, 29 Mar 2020 00:06:54 +0300 Subject: [PATCH] testsuite: adjust modulo-sched compare-debug tests Without this patch tortured tests eventually fail because of another known issue which I plan to fix later in stage1. * gcc.dg/torture/pr87197-debug-sms.c: Move to ... * gcc.dg/sms-compare-debug-1.c: ... this. Add -O2. * gcc.c-torture/execute/pr70127-debug-sms.c: Move to ... * gcc.dg/sms-compare-debug-2.c: ... this. Add -O2. --- gcc/testsuite/ChangeLog | 7 +++++++ .../{torture/pr87197-debug-sms.c => sms-compare-debug-1.c} | 2 +- .../pr70127-debug-sms.c => gcc.dg/sms-compare-debug-2.c} | 3 ++- 3 files changed, 10 insertions(+), 2 deletions(-) rename gcc/testsuite/gcc.dg/{torture/pr87197-debug-sms.c => sms-compare-debug-1.c} (81%) rename gcc/testsuite/{gcc.c-torture/execute/pr70127-debug-sms.c => gcc.dg/sms-compare-debug-2.c} (78%) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 92f161f197a..5a1a2d12348 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2020-03-28 Roman Zhuykov + + * gcc.dg/torture/pr87197-debug-sms.c: Move to ... + * gcc.dg/sms-compare-debug-1.c: ... this. Add -O2. + * gcc.c-torture/execute/pr70127-debug-sms.c: Move to ... + * gcc.dg/sms-compare-debug-2.c: ... this. Add -O2. + 2020-03-28 Tobias Burnus PR fortran/94348 diff --git a/gcc/testsuite/gcc.dg/torture/pr87197-debug-sms.c b/gcc/testsuite/gcc.dg/sms-compare-debug-1.c similarity index 81% rename from gcc/testsuite/gcc.dg/torture/pr87197-debug-sms.c rename to gcc/testsuite/gcc.dg/sms-compare-debug-1.c index fbbf1b389ea..96b376c3922 100644 --- a/gcc/testsuite/gcc.dg/torture/pr87197-debug-sms.c +++ b/gcc/testsuite/gcc.dg/sms-compare-debug-1.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-additional-options "-fcompare-debug -fmodulo-sched --param sms-min-sc=1" } */ +/* { dg-options "-O2 -fcompare-debug -fmodulo-sched --param sms-min-sc=1" } */ int a, c, e, f, g; void diff --git a/gcc/testsuite/gcc.c-torture/execute/pr70127-debug-sms.c b/gcc/testsuite/gcc.dg/sms-compare-debug-2.c similarity index 78% rename from gcc/testsuite/gcc.c-torture/execute/pr70127-debug-sms.c rename to gcc/testsuite/gcc.dg/sms-compare-debug-2.c index 46911789be8..dca7b65c08e 100644 --- a/gcc/testsuite/gcc.c-torture/execute/pr70127-debug-sms.c +++ b/gcc/testsuite/gcc.dg/sms-compare-debug-2.c @@ -1,4 +1,5 @@ -/* { dg-additional-options "-fcompare-debug -fmodulo-sched" } */ +/* { dg-do compile } */ +/* { dg-options "-O2 -fcompare-debug -fmodulo-sched" } */ struct S { int f; signed int g : 2; } a[1], c = {5, 1}, d; short b; -- 2.30.2