[PATCH, testsuite]: Also scan for $loopfn

Uros Bizjak ubizjak@gmail.com
Mon Sep 14 17:20:00 GMT 2015


Hello!

tree-parloops pass names loop functions as $loopfn. These names are
later renamed for NO_DOLLAR_IN_LABEL targets to _loopfn.
alpha-linux-gnu is not in this group, so it fails

FAIL: gcc.dg/gomp/notify-new-function-3.c scan-tree-dump-times
ompexpssa "Added new ssa gimple function foo\\\\._loopfn\\\\.0 to
callgraph" 1

Attached patch changes a couple of scan patterns to also handle
dollars in loopfn names.

2015-09-14  Uros Bizjak  <ubizjak@gmail.com>

    * gcc.dg/gomp/dump-new-function-3.c (dg-final): Also scan for $loopfn.
    * gcc.dg/gomp/notify-new-function-3.c (dg-final): Ditto.

Tested on alphaev68-linux-gnu and x86_64-linux-gnu.

Committed to mainline SVN.

Uros.
-------------- next part --------------
Index: gcc.dg/gomp/dump-new-function-3.c
===================================================================
--- gcc.dg/gomp/dump-new-function-3.c	(revision 227715)
+++ gcc.dg/gomp/dump-new-function-3.c	(working copy)
@@ -10,4 +10,4 @@
 }
 
 /* Check that new function does not end up in gimple dump.  */
-/* { dg-final { scan-tree-dump-not "foo\\._loopfn\\.0" "gimple" } } */
+/* { dg-final { scan-tree-dump-not "foo\\.\[\\\$_\]loopfn\\.0" "gimple" } } */
Index: gcc.dg/gomp/notify-new-function-3.c
===================================================================
--- gcc.dg/gomp/notify-new-function-3.c	(revision 227715)
+++ gcc.dg/gomp/notify-new-function-3.c	(working copy)
@@ -11,4 +11,4 @@
 
 
 /* Check for new function notification in ompexpssa dump.  */
-/* { dg-final { scan-tree-dump-times "Added new ssa gimple function foo\\._loopfn\\.0 to callgraph" 1 "ompexpssa" } } */
+/* { dg-final { scan-tree-dump-times "Added new ssa gimple function foo\\.\[\\\$_\]loopfn\\.0 to callgraph" 1 "ompexpssa" } } */


More information about the Gcc-patches mailing list