darwin - fix a failing test
authorIain Sandoe <iain@sandoe.co.uk>
Thu, 2 May 2019 13:44:17 +0000 (13:44 +0000)
committerIain Sandoe <iains@gcc.gnu.org>
Thu, 2 May 2019 13:44:17 +0000 (13:44 +0000)
An inflexible regex caused these tests to regress.

2019-05-02  Iain Sandoe  <iain@sandoe.co.uk>

* gcc.dg/tree-prof/section-attr-1.c: Update scan-asm regex
for cold section label.
* gcc.dg/tree-prof/section-attr-2.c: Likewise.
* gcc.dg/tree-prof/section-attr-3.c: Likewise.

From-SVN: r270797

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-prof/section-attr-1.c
gcc/testsuite/gcc.dg/tree-prof/section-attr-2.c
gcc/testsuite/gcc.dg/tree-prof/section-attr-3.c

index 26de08443f3e7094bd514e47ef2653155b015fdc..40228949942dbc56fcc658c46b10818d078491e8 100644 (file)
@@ -1,3 +1,10 @@
+2019-05-02  Iain Sandoe  <iain@sandoe.co.uk>
+
+       * gcc.dg/tree-prof/section-attr-1.c: Update scan-asm regex
+       for cold section label.
+       * gcc.dg/tree-prof/section-attr-2.c: Likewise.
+       * gcc.dg/tree-prof/section-attr-3.c: Likewise.
+
 2019-05-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
 
        * gcc.target/i386/spellcheck-options-5.c: Restrict to Linux and
index 0cbd2de0cb100d0574b078cb8a2b4f0a2ad52301..89ecc1c469364bed8f7decdfc8b3cb35ea2a4c7d 100644 (file)
@@ -47,4 +47,4 @@ foo (int path)
 }
 
 /* { dg-final-use { scan-assembler "\.section\[\t \]*\.text\.unlikely\[\\n\\r\]+\[\t \]*\.size\[\t \]*foo\.cold" { target *-*-linux* *-*-gnu* } } } */
-/* { dg-final-use { scan-assembler "\.section\[\t \]*__TEXT,__text_cold\*\[\\n\\r\]+_foo\.cold" { target *-*-darwin* } } } */
+/* { dg-final-use { scan-assembler {.section[\t ]*__TEXT,__text_cold[^\n]*[\n\r]+_foo.cold:} { target *-*-darwin* } } } */
index 75a4d8a2c9652fe5e3800f70e2fc7a3faa3f3c31..b856457b5598fdfe51eed8b2393ad65a8ec8ae53 100644 (file)
@@ -46,4 +46,4 @@ foo (int path)
 }
 
 /* { dg-final-use { scan-assembler "\.section\[\t \]*\.text\.unlikely\[\\n\\r\]+\[\t \]*\.size\[\t \]*foo\.cold" { target *-*-linux* *-*-gnu* } } } */
-/* { dg-final-use { scan-assembler "\.section\[\t \]*__TEXT,__text_cold\*\[\\n\\r\]+_foo\.cold:" { target *-*-darwin* } } } */
+/* { dg-final-use { scan-assembler {.section[\t ]*__TEXT,__text_cold[^\n]*[\n\r]+_foo.cold:} { target *-*-darwin* } } } */
index c243b18b1cff4a992ae156cdd9f9423ff1428551..8d85cf39f6c9a0574c8622db0f5303e40a3c5489 100644 (file)
@@ -47,4 +47,4 @@ foo (int path)
 }
 
 /* { dg-final-use { scan-assembler "\.section\[\t \]*\.text\.unlikely\[\\n\\r\]+\[\t \]*\.size\[\t \]*foo\.cold" { target *-*-linux* *-*-gnu* } } } */
-/* { dg-final-use { scan-assembler "\.section\[\t \]*__TEXT,__text_cold\*\[\\n\\r\]+_foo\.cold:" { target *-*-darwin* } } } */
+/* { dg-final-use { scan-assembler {.section[\t ]*__TEXT,__text_cold[^\n]*[\n\r]+_foo.cold:} { target *-*-darwin* } } } */