[Testsuite] pr71767 Changes.
authorDominique d'Humieres <dominiq@lps.ens.fr>
Sun, 27 Nov 2016 14:41:22 +0000 (15:41 +0100)
committerIain Sandoe <iains@gcc.gnu.org>
Sun, 27 Nov 2016 14:41:22 +0000 (14:41 +0000)
 Update Darwin tests to reflect the differences in symbol names and section
 usage.

gcc/testsuite/

2016-11-27  Dominique d'Humieres  <dominiq@lps.ens.fr>
    Iain Sandoe  <iain@codesourcery.com>

PR target/71767
* g++.dg/abi/key2.C: Adjust for changed Darwin sections and
linker-visible symbols.
* g++.dg/torture/darwin-cfstring-3.C: Likewise.
* gcc.dg/const-uniq-1.c: Likewise.
* gcc.dg/torture/darwin-cfstring-3.c: Likewise.
* gcc.target/i386/pr70799-1.c: Likewise.

Co-Authored-By: Iain Sandoe <iain@codesourcery.com>
From-SVN: r242896

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/abi/key2.C
gcc/testsuite/g++.dg/torture/darwin-cfstring-3.C
gcc/testsuite/gcc.dg/const-uniq-1.c
gcc/testsuite/gcc.dg/torture/darwin-cfstring-3.c
gcc/testsuite/gcc.target/i386/pr70799-1.c

index 7df637122518b1177975a15bc0de51310a22a820..bd2d5405ba71d1ea9a1a4887ff23f5bf0d91747e 100644 (file)
@@ -1,3 +1,14 @@
+2016-11-27  Dominique d'Humieres  <dominiq@lps.ens.fr>
+           Iain Sandoe  <iain@codesourcery.com>
+
+       PR target/71767
+       * g++.dg/abi/key2.C: Adjust for changed Darwin sections and
+       linker-visible symbols.
+       * g++.dg/torture/darwin-cfstring-3.C: Likewise.
+       * gcc.dg/const-uniq-1.c: Likewise.
+       * gcc.dg/torture/darwin-cfstring-3.c: Likewise.
+       * gcc.target/i386/pr70799-1.c: Likewise.
+
 2016-11-25  Jakub Jelinek  <jakub@redhat.com>
 
        PR rtl-optimization/78438
index 0d1347aaaa074bf78b29338d7bc664fb436a8adb..c79b3b2a20cab7a21b39100912aab19d93be48d6 100644 (file)
@@ -2,6 +2,7 @@
 // PR darwin/25908
 
 // { dg-do compile { target *-*-darwin* } }
+// { dg-options "-mtarget-linker 85.2" }
 // { dg-final { scan-assembler ".globl __ZTV1f\\n      .weak_definition __ZTV1f(\\n    .section __DATA,__const_coal,coalesced)?\\n     .align" } }
 // { dg-final { scan-assembler ".globl __ZTS1f\\n      .weak_definition __ZTS1f\\n     .section __TEXT,__const_coal,coalesced" } }
 // { dg-final { scan-assembler ".globl __ZTI1f\\n      .weak_definition __ZTI1f(\\n    .section __DATA,__const_coal,coalesced)?\\n     .align" } }
index 2d755ec8dd0e4e66379236f034af3dcb00509ac5..ee4b385b17fad6cf20257df2d6caaed6fc958c7d 100644 (file)
@@ -24,7 +24,7 @@ void foo(void) {
   s0 = s1;
 }
 
-/* { dg-final { scan-assembler "\\.long\[ \\t\]+___CFConstantStringClassReference\n\[ \\t\]*\\.long\[ \\t\]+1992\n\[ \\t\]*\\.long\[ \\t\]+LC.*\n\[ \\t\]*\\.long\[ \\t\]+4\n" { target { *-*-darwin* && { ! lp64 } } } } } */
-/* { dg-final { scan-assembler "\\.long\[ \\t\]+___CFConstantStringClassReference\n\[ \\t\]*\\.long\[ \\t\]+1992\n\[ \\t\]*\\.long\[ \\t\]+LC.*\n\[ \\t\]*\\.long\[ \\t\]+10\n" { target { *-*-darwin* && { ! lp64 } } } } } */
+/* { dg-final { scan-assembler "\\.long\[ \\t\]+___CFConstantStringClassReference\n\[ \\t\]*\\.long\[ \\t\]+1992\n\[ \\t\]*\\.long\[ \\t\]+\[lL\]C.*\n\[ \\t\]*\\.long\[ \\t\]+4\n" { target { *-*-darwin* && { ! lp64 } } } } } */
+/* { dg-final { scan-assembler "\\.long\[ \\t\]+___CFConstantStringClassReference\n\[ \\t\]*\\.long\[ \\t\]+1992\n\[ \\t\]*\\.long\[ \\t\]+\[lL\]C.*\n\[ \\t\]*\\.long\[ \\t\]+10\n" { target { *-*-darwin* && { ! lp64 } } } } } */
 /* { dg-final { scan-assembler ".quad\t___CFConstantStringClassReference\n\t.long\t1992\n\t.space 4\n\t.quad\t.*\n\t.quad\t4\n" { target { *-*-darwin* && {  lp64 } } } } } */
 /* { dg-final { scan-assembler ".quad\t___CFConstantStringClassReference\n\t.long\t1992\n\t.space 4\n\t.quad\t.*\n\t.quad\t10\n" { target { *-*-darwin* && {  lp64 } } } } } */
index 2cb4f8a56cd17931bac254150d20e95ad1c9f5a2..0e0718bf5057cbb22b73a705995f0b10f78ce013 100644 (file)
@@ -20,4 +20,4 @@ int lookup2 (int i)
   return a[i+1];
 }
 
-/* { dg-final { scan-tree-dump-times "L\\\$?C\\\.*0" 2 "gimple" } } */
+/* { dg-final { scan-tree-dump-times "\[lL\]\\\$?C\\\.*0" 2 "gimple" } } */
index 2d755ec8dd0e4e66379236f034af3dcb00509ac5..ee4b385b17fad6cf20257df2d6caaed6fc958c7d 100644 (file)
@@ -24,7 +24,7 @@ void foo(void) {
   s0 = s1;
 }
 
-/* { dg-final { scan-assembler "\\.long\[ \\t\]+___CFConstantStringClassReference\n\[ \\t\]*\\.long\[ \\t\]+1992\n\[ \\t\]*\\.long\[ \\t\]+LC.*\n\[ \\t\]*\\.long\[ \\t\]+4\n" { target { *-*-darwin* && { ! lp64 } } } } } */
-/* { dg-final { scan-assembler "\\.long\[ \\t\]+___CFConstantStringClassReference\n\[ \\t\]*\\.long\[ \\t\]+1992\n\[ \\t\]*\\.long\[ \\t\]+LC.*\n\[ \\t\]*\\.long\[ \\t\]+10\n" { target { *-*-darwin* && { ! lp64 } } } } } */
+/* { dg-final { scan-assembler "\\.long\[ \\t\]+___CFConstantStringClassReference\n\[ \\t\]*\\.long\[ \\t\]+1992\n\[ \\t\]*\\.long\[ \\t\]+\[lL\]C.*\n\[ \\t\]*\\.long\[ \\t\]+4\n" { target { *-*-darwin* && { ! lp64 } } } } } */
+/* { dg-final { scan-assembler "\\.long\[ \\t\]+___CFConstantStringClassReference\n\[ \\t\]*\\.long\[ \\t\]+1992\n\[ \\t\]*\\.long\[ \\t\]+\[lL\]C.*\n\[ \\t\]*\\.long\[ \\t\]+10\n" { target { *-*-darwin* && { ! lp64 } } } } } */
 /* { dg-final { scan-assembler ".quad\t___CFConstantStringClassReference\n\t.long\t1992\n\t.space 4\n\t.quad\t.*\n\t.quad\t4\n" { target { *-*-darwin* && {  lp64 } } } } } */
 /* { dg-final { scan-assembler ".quad\t___CFConstantStringClassReference\n\t.long\t1992\n\t.space 4\n\t.quad\t.*\n\t.quad\t10\n" { target { *-*-darwin* && {  lp64 } } } } } */
index 5860a8dc620c20637399509cc8bfb7c0c3d3c17e..44c795ccab45a8a5864e563729946688eaefa3c1 100644 (file)
@@ -3,7 +3,7 @@
 /* { dg-options "-O2 -march=slm -mno-stackrealign" } */
 /* { dg-final { scan-assembler "pxor" } } */
 /* { dg-final { scan-assembler "pcmpeqd" } } */
-/* { dg-final { scan-assembler "movdqa\[ \\t\]+.?LC0" } } */
+/* { dg-final { scan-assembler "movdqa\[ \\t\]+.?\[lL\]C0" } } */
 
 long long a, b, c;