+2020-03-28 Roman Zhuykov <zhroma@ispras.ru>
+
+ * 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 <tobias@codesourcery.com>
PR fortran/94348
+++ /dev/null
-/* { dg-additional-options "-fcompare-debug -fmodulo-sched" } */
-
-struct S { int f; signed int g : 2; } a[1], c = {5, 1}, d;
-short b;
-
-__attribute__((noinline, noclone)) void
-foo (int x)
-{
- if (x != 1)
- __builtin_abort ();
-}
-
-int
-main ()
-{
- while (b++ <= 0)
- {
- struct S e = {1, 1};
- d = e = a[0] = c;
- }
- foo (a[0].g);
- return 0;
-}
--- /dev/null
+/* { dg-do compile } */
+/* { dg-options "-O2 -fcompare-debug -fmodulo-sched --param sms-min-sc=1" } */
+
+int a, c, e, f, g;
+void
+h (int i)
+{
+ a = i;
+}
+void
+j (char *i, long k)
+{
+ while (k--)
+ c = *i++;
+}
+void
+l (unsigned char *i, long k)
+{
+ unsigned char *b = i + k;
+ while (i < b)
+ {
+ h (*i);
+ i++;
+ }
+}
+void
+m ()
+{
+ while (e)
+ {
+ float d = g;
+ l ((char *) &d, sizeof (g));
+ if (f)
+ j ((char *) &d, sizeof (g));
+ }
+}
--- /dev/null
+/* { 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;
+
+__attribute__((noinline, noclone)) void
+foo (int x)
+{
+ if (x != 1)
+ __builtin_abort ();
+}
+
+int
+main ()
+{
+ while (b++ <= 0)
+ {
+ struct S e = {1, 1};
+ d = e = a[0] = c;
+ }
+ foo (a[0].g);
+ return 0;
+}
+++ /dev/null
-/* { dg-do compile } */
-/* { dg-additional-options "-fcompare-debug -fmodulo-sched --param sms-min-sc=1" } */
-
-int a, c, e, f, g;
-void
-h (int i)
-{
- a = i;
-}
-void
-j (char *i, long k)
-{
- while (k--)
- c = *i++;
-}
-void
-l (unsigned char *i, long k)
-{
- unsigned char *b = i + k;
- while (i < b)
- {
- h (*i);
- i++;
- }
-}
-void
-m ()
-{
- while (e)
- {
- float d = g;
- l ((char *) &d, sizeof (g));
- if (f)
- j ((char *) &d, sizeof (g));
- }
-}