From: Roman Zhuykov Date: Sat, 28 Mar 2020 21:06:54 +0000 (+0300) Subject: testsuite: adjust modulo-sched compare-debug tests X-Git-Tag: basepoints/gcc-11~633 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=946a444df340609663975c998edc8dfa47284c38;p=thirdparty%2Fgcc.git 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. --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 92f161f197ae..5a1a2d123488 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 fbbf1b389ea6..96b376c3922d 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 46911789be88..dca7b65c08e4 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;