darwin, testsuite, laste piece to fix PR82920
authorIain Sandoe <iain@sandoe.co.uk>
Wed, 15 May 2019 07:10:04 +0000 (07:10 +0000)
committerIain Sandoe <iains@gcc.gnu.org>
Wed, 15 May 2019 07:10:04 +0000 (07:10 +0000)
These ae test adjustments to the scan assembler strings
mostly just to catch missing __USER_LABEL_PREFIX__s  on
symbols.

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

PR target/82920
* g++.dg/cet-notrack-1.C: Adjust scan assembler for Darwin.
* gcc.target/i386/cet-notrack-5a.c: Likewise.
* gcc.target/i386/cet-notrack-5b.c: Likewise.
* gcc.target/i386/cet-notrack-6b.c: Likewise.
* gcc.target/i386/cet-notrack-icf-1.c: Likewise.
* gcc.target/i386/cet-notrack-icf-2.c: Likewise.
* gcc.target/i386/cet-notrack-icf-3.c: Likewise.
* gcc.target/i386/cet-notrack-icf-4.c: Likewise.
* gcc.target/i386/cet-sjlj-3.c: Likewise.
* gcc.target/i386/cet-sjlj-5.c: Likewise.

From-SVN: r271199

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cet-notrack-1.C
gcc/testsuite/gcc.target/i386/cet-notrack-5a.c
gcc/testsuite/gcc.target/i386/cet-notrack-5b.c
gcc/testsuite/gcc.target/i386/cet-notrack-6b.c
gcc/testsuite/gcc.target/i386/cet-notrack-icf-1.c
gcc/testsuite/gcc.target/i386/cet-notrack-icf-2.c
gcc/testsuite/gcc.target/i386/cet-notrack-icf-3.c
gcc/testsuite/gcc.target/i386/cet-notrack-icf-4.c
gcc/testsuite/gcc.target/i386/cet-sjlj-3.c
gcc/testsuite/gcc.target/i386/cet-sjlj-5.c

index 93aa83b58c54a485f517a14333119ab32a1c50c7..730a9ebfd7a9b0876fcb9b01a6a1e2b733ec1f5a 100644 (file)
@@ -1,3 +1,17 @@
+2019-05-15  Iain Sandoe  <iain@sandoe.co.uk>
+
+       PR target/82920
+       * g++.dg/cet-notrack-1.C: Adjust scan assembler for Darwin.
+       * gcc.target/i386/cet-notrack-5a.c: Likewise.
+       * gcc.target/i386/cet-notrack-5b.c: Likewise.
+       * gcc.target/i386/cet-notrack-6b.c: Likewise.
+       * gcc.target/i386/cet-notrack-icf-1.c: Likewise.
+       * gcc.target/i386/cet-notrack-icf-2.c: Likewise.
+       * gcc.target/i386/cet-notrack-icf-3.c: Likewise.
+       * gcc.target/i386/cet-notrack-icf-4.c: Likewise.
+       * gcc.target/i386/cet-sjlj-3.c: Likewise.
+       * gcc.target/i386/cet-sjlj-5.c: Likewise.
+
 2019-05-14  Marek Polacek  <polacek@redhat.com>
 
        PR c++/68918
index eab0946d4779ed0351421500fcc5e4f117966a52..ee98fd43d587ecb6c402d4a737be05263a78228f 100644 (file)
@@ -1,7 +1,7 @@
 /* { dg-do compile { target i?86-*-* x86_64-*-* } } */
 /* { dg-options "-fcf-protection" } */
 /* { dg-final { scan-assembler "endbr32|endbr64" } } */
-/* { dg-final { scan-assembler-times "\tcall\[ \t]+puts" 2 } } */
+/* { dg-final { scan-assembler-times "\tcall\[ \t]+_?puts" 2 } } */
 /* { dg-final { scan-assembler-times "notrack call\[ \t]+" 1 } } */
 #include <stdio.h>
 
index 50fe0db7d0c8cb132fddffa82db93976ffcaf5b9..c80b4f65926e68395b716763d4153f659d6124dd 100644 (file)
@@ -2,7 +2,8 @@
 /* { dg-options "-O -fcf-protection" } */
 /* { dg-final { scan-assembler-times "endbr32" 1 { target ia32 } } } */
 /* { dg-final { scan-assembler-times "endbr64" 1 { target { ! ia32 } } } } */
-/* { dg-final { scan-assembler-not "\tcall\[ \t]+" } } */
+/* { dg-final { scan-assembler-not "\tcall\[ \t]+" { target { ! ia32 } || { ! *-*-darwin* } } } } */
+/* { dg-final { scan-assembler-times "\tcall\[ \t]+" 1 { target { ia32 && *-*-darwin* } } } } */
 /* { dg-final { scan-assembler-times "notrack call\[ \t]+" 1 } } */
 
 int (*fptr) (int) __attribute__ ((nocf_check));
index 222ff62d6709ba92cd636da26479c965c633d5e5..255ad458a87a9bc7887f60a6347cdad01ce5f531 100644 (file)
@@ -3,7 +3,8 @@
 /* { dg-options "-O -fcf-protection" } */
 /* { dg-final { scan-assembler-times "endbr32" 1 { target ia32 } } } */
 /* { dg-final { scan-assembler-times "endbr64" 1 { target { ! ia32 } } } } */
-/* { dg-final { scan-assembler-times "\tcall\[ \t]+" 1 } } */
+/* { dg-final { scan-assembler-times "\tcall\[ \t]+" 1 { target { ! ia32 } || { ! *-*-darwin* } } } } */
+/* { dg-final { scan-assembler-times "\tcall\[ \t]+" 2 { target { ia32 && *-*-darwin* } } } } */
 /* { dg-final { scan-assembler-times "notrack call\[ \t]+" 1 } } */
 
 int (*fptr) (int) __attribute__ ((nocf_check));
index f27088c7283193a9cf07904f13b367de3cd15b25..f950d3a8689ab55451878c9cdf50e05930b3a572 100644 (file)
@@ -2,7 +2,8 @@
 /* { dg-options "-O0 -fcf-protection" } */
 /* { dg-final { scan-assembler-times "endbr32" 1 { target ia32 } } } */
 /* { dg-final { scan-assembler-times "endbr64" 1 { target { ! ia32 } } } } */
-/* { dg-final { scan-assembler-not "\tcall\[ \t]+" } } */
+/* { dg-final { scan-assembler-not "\tcall\[ \t]+" { target { ! ia32 } || { ! *-*-darwin* } } } } */
+/* { dg-final { scan-assembler-times "\tcall\[ \t]+" 1 { target { ia32 && *-*-darwin* } } } } */
 /* { dg-final { scan-assembler-times "notrack call\[ \t]+" 1 } } */
 
 int foo (int arg);
index b90019f5e83e7e9d232616517259f67b0e0ea00e..fe913e87eeac5933e178a7c95c8ec8983066630e 100644 (file)
@@ -3,8 +3,8 @@
 /* { dg-options "-O2 -fcf-protection=none" } */
 /* { dg-final { scan-assembler-not "endbr" } } */
 /* { dg-final { scan-assembler-not "fn3:" } } */
-/* { dg-final { scan-assembler "set\[ \t]+fn2,fn1" } } */
-/* { dg-final { scan-assembler "set\[ \t]+fn3,fn1" } } */
+/* { dg-final { scan-assembler "set\[ \t]+fn2,fn1" { target { ! *-*-darwin* } } } } */
+/* { dg-final { scan-assembler "set\[ \t]+fn3,fn1" { target { ! *-*-darwin* } } } } */
 
 static __attribute__((noinline)) int
 fn1 (int x)
index 08132a3e7ac1d38967ff1f15e189f1514d1669fa..f15594d1f0b2ba29d058414d710370692395f2e0 100644 (file)
@@ -3,7 +3,7 @@
 /* { dg-options "-O2 -fcf-protection" } */
 /* { dg-final { scan-assembler "endbr" } } */
 /* { dg-final { scan-assembler "fn3:" } } */
-/* { dg-final { scan-assembler "set\[ \t]+fn2,fn1" } } */
+/* { dg-final { scan-assembler "set\[ \t]+fn2,fn1" { target { ! *-*-darwin* } } } } */
 
 static __attribute__((noinline)) int
 fn1 (int x)
index 3eec1e0ef8fe9fb566059ded1068917208c63e5b..e1b34da31df2a362b9c88a4bb0bbeff24526523a 100644 (file)
@@ -3,8 +3,8 @@
 /* { dg-options "-O2 -fcf-protection=none" } */
 /* { dg-final { scan-assembler-not "endbr" } } */
 /* { dg-final { scan-assembler-not "fn2:" } } */
-/* { dg-final { scan-assembler "set\[ \t]+fn2,fn1" } } */
-/* { dg-final { scan-assembler "set\[ \t]+fn3,fn1" } } */
+/* { dg-final { scan-assembler "set\[ \t]+fn2,fn1" { target { ! *-*-darwin* } } } } */
+/* { dg-final { scan-assembler "set\[ \t]+fn3,fn1" { target { ! *-*-darwin* } } } } */
 
 int (*foo)(int);
 
index b5f07876b5290e1f7a8bb4a0c3aeabb5b4ee54b4..7d646662a4e62dd7d9df45a9e267e4858d9415f6 100644 (file)
@@ -3,7 +3,7 @@
 /* { dg-options "-O2 -fcf-protection" } */
 /* { dg-final { scan-assembler "endbr" } } */
 /* { dg-final { scan-assembler "fn2:" } } */
-/* { dg-final { scan-assembler "set\[ \t]+fn3,fn1" } } */
+/* { dg-final { scan-assembler "set\[ \t]+fn3,fn1" { target { ! *-*-darwin* } } } } */
 
 int (*foo)(int);
 
index 25117cc0c9fdff9fa09308c4a9eceb6cf52bea08..e2653dbb2c57f74cff05e30b470bc9dab0fc352a 100644 (file)
@@ -3,7 +3,7 @@
 /* { dg-final { scan-assembler-times "endbr32" 4 { target ia32 } } } */
 /* { dg-final { scan-assembler-times "endbr64" 4 { target { ! ia32 } } } } */
 /* { dg-final { scan-assembler-times "call     _?setjmp" 1 } } */
-/* { dg-final { scan-assembler-times "call     longjmp" 1 } } */
+/* { dg-final { scan-assembler-times "call     _?longjmp" 1 } } */
 
 #include <stdio.h>
 #include <setjmp.h>
index 1b624327d0f4684de59c76935cad193e58ae6821..8470f9cbf884c8cc91a8a6e6449b2717ad1fd3b3 100644 (file)
@@ -3,7 +3,7 @@
 /* { dg-final { scan-assembler-times "endbr32" 2 { target ia32 } } } */
 /* { dg-final { scan-assembler-times "endbr64" 2 { target { ! ia32 } } } } */
 /* { dg-final { scan-assembler-times "call     _?setjmp" 1 } } */
-/* { dg-final { scan-assembler-times "call     longjmp" 1 } } */
+/* { dg-final { scan-assembler-times "call     _?longjmp" 1 } } */
 
 #include <stdio.h>
 #include <setjmp.h>