diff mbox series

gcc.dg/no_profile_instrument_function-attr-1.c: Adjust for NO_DOT_IN_LABEL

Message ID alpine.BSF.2.20.16.2007212146360.1193@arjuna.pair.com
State New
Headers show
Series gcc.dg/no_profile_instrument_function-attr-1.c: Adjust for NO_DOT_IN_LABEL | expand

Commit Message

Hans-Peter Nilsson July 22, 2020, 1:47 a.m. UTC
mmix-knuth-mmixware is a NO_DOT_IN_LABEL target, so it gets a "_"
instead of the "." in the identifier of interest.  Also tested and
compared to the output for cris-elf which is "regular" regarding
labels: there are no "false positive" identifiers there.  The "." in a
TCL bracket expression matches only a literal ".".

Committed as obvious.

gcc/testsuite:
	* gcc.dg/no_profile_instrument_function-attr-1.c: Adjust scanned
	regex for NO_DOT_IN_LABEL.
diff mbox series

Patch

--- gcc/gcc/testsuite/gcc.dg/no_profile_instrument_function-attr-1.c.orig	Wed Jul 22 03:30:54 2020
+++ gcc/gcc/testsuite/gcc.dg/no_profile_instrument_function-attr-1.c	Wed Jul 22 03:32:02 2020
@@ -18,7 +18,7 @@  int main ()
   return foo ();
 }

-/* { dg-final { scan-tree-dump-times "__gcov0\\.main.* = PROF_edge_counter" 1 "optimized"} } */
+/* { dg-final { scan-tree-dump-times "__gcov0\[._\]main.* = PROF_edge_counter" 1 "optimized"} } */
 /* { dg-final { scan-tree-dump-times "__gcov_indirect_call_profiler_v" 1 "optimized" } } */
 /* { dg-final { scan-tree-dump-times "__gcov_time_profiler_counter = " 1 "optimized" } } */
 /* { dg-final { scan-tree-dump-times "__gcov_init" 1 "optimized" } } */