gcc.dg/torture/pr39074-2.c, pr39074.c, pta-callused-1.c: Adjust for mmix.

Message ID alpine.BSF.2.20.16.2007271945440.13212@arjuna.pair.com
State New
Headers show
Series
  • gcc.dg/torture/pr39074-2.c, pr39074.c, pta-callused-1.c: Adjust for mmix.
Related show

Commit Message

Hans-Peter Nilsson July 27, 2020, 11:46 p.m.
Committed.

These FAILs for mmix showed up as regressions for me due to a
flaw in the btest-gcc.sh test-results-accounting: a bug was
recently fixed regarding the naming of dump-files so the names
are again correct.  To wit, parts of the tests that were
UNRESOLVED, due to missing dump-files, and ignored in the
presence of other parts (execution, excess errors) PASSing,
became FAIL, trumping the PASSing parts of the tests.

As in a recent patch, the variables are "privatized" using
ASM_PN_FORMAT for MMIX and the lines to match look like:
 y::0_1 = { i }
 y::0_1, points-to NULL, points-to vars: { D.1465 } (nonlocal, escaped)
instead of e.g. for cris-elf:
 y.0_1 = { i }
 y.0_1, points-to NULL, points-to vars: { D.1433 } (nonlocal, escaped)
Also checked that the general pattern still matches for cris-elf.

gcc/testsuite:
	* gcc.dg/torture/pr39074-2.c: Adjust for mmix.
	* gcc.dg/torture/pr39074.c, gcc.dg/torture/pta-callused-1.c: Ditto.

Patch

--- gcc/gcc/testsuite/gcc.dg/torture/pr39074-2.c.orig	Tue Jul 28 01:04:26 2020
+++ gcc/gcc/testsuite/gcc.dg/torture/pr39074-2.c	Tue Jul 28 01:04:27 2020
@@ -30,5 +30,5 @@  int main()
   return 0;
 }

-/* { dg-final { scan-tree-dump "y.._. = { i }" "alias" } } */
-/* { dg-final { scan-tree-dump "y.._., points-to NULL, points-to vars: { D..... }" "alias" } } */
+/* { dg-final { scan-tree-dump "y.\?.._. = { i }" "alias" } } */
+/* { dg-final { scan-tree-dump "y.\?.._., points-to NULL, points-to vars: { D..... }" "alias" } } */
--- gcc/gcc/testsuite/gcc.dg/torture/pr39074.c.orig	Tue Jul 28 01:12:39 2020
+++ gcc/gcc/testsuite/gcc.dg/torture/pr39074.c	Tue Jul 28 01:13:14 2020
@@ -29,5 +29,5 @@  int main()
   return 0;
 }

-/* { dg-final { scan-tree-dump "y.._. = { i }" "alias" } } */
-/* { dg-final { scan-tree-dump "y.._., points-to NULL, points-to vars: { D..... }" "alias" } } */
+/* { dg-final { scan-tree-dump "y.\?.._. = { i }" "alias" } } */
+/* { dg-final { scan-tree-dump "y.\?.._., points-to NULL, points-to vars: { D..... }" "alias" } } */
--- gcc/gcc/testsuite/gcc.dg/torture/pta-callused-1.c.orig	Tue Jul 28 01:27:36 2020
+++ gcc/gcc/testsuite/gcc.dg/torture/pta-callused-1.c	Tue Jul 28 01:27:55 2020
@@ -21,4 +21,4 @@  int main()
   return 0;
 }

-/* { dg-final { scan-tree-dump "p.._. = { i j }" "alias" } } */
+/* { dg-final { scan-tree-dump "p.\?.._. = { i j }" "alias" } } */