blob: dbfeb52b9eb5e8e171c3a20cd8991101040c8cff [file] [log] [blame]
Brad Bishop286d45c2018-10-02 15:21:57 -04001From 037809e91bfed9c501ecd5272ff6d3ce96edf76c Mon Sep 17 00:00:00 2001
2From: Mahesh Bodapati <mbodapat@xilinx.com>
3Date: Sat, 26 Aug 2017 19:21:22 -0700
4Subject: [PATCH] Allow MicroBlaze .weakext pattern in testsuite
5
6Allow MicroBlaze .weakext pattern in regex match Extend regex pattern to
7include optional ext at the end of .weak to match the MicroBlaze weak
8label .weakext
9
10ChangeLog/testsuite
11
122014-02-14 David Holsgrove <david.holsgrove@xilinx.com>
13
14 * gcc/testsuite/g++.dg/abi/rtti3.C: Extend scan-assembler
15 pattern to take optional ext after .weak.
16 * gcc/testsuite/g++.dg/abi/thunk4.C: Likewise.
17
18Signed-off-by: David Holsgrove <david.holsgrove@xilinx.com>
19Signed-off-by: Mahesh Bodapati <mbodapat@xilinx.com>
20Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com>
21Upstream-Status: Pending
22---
23 gcc/testsuite/g++.dg/abi/rtti3.C | 4 ++--
24 gcc/testsuite/g++.dg/abi/thunk3.C | 2 +-
25 gcc/testsuite/g++.dg/abi/thunk4.C | 2 +-
26 3 files changed, 4 insertions(+), 4 deletions(-)
27
28diff --git a/gcc/testsuite/g++.dg/abi/rtti3.C b/gcc/testsuite/g++.dg/abi/rtti3.C
29index 0316bcb5de..5a39a0811f 100644
30--- a/gcc/testsuite/g++.dg/abi/rtti3.C
31+++ b/gcc/testsuite/g++.dg/abi/rtti3.C
32@@ -3,8 +3,8 @@
33
34 // { dg-require-weak "" }
35 // { dg-skip-if "Linkonce not weak" { *-*-mingw* *-*-cygwin } { "*" } { "" } }
36-// { dg-final { scan-assembler ".weak\[ \t\]_?_ZTSPP1A" { target { ! { *-*-darwin* hppa*-*-hpux* } } } } }
37-// { dg-final { scan-assembler-not ".weak\[ \t\]_?_ZTIPP1A" { target { ! { *-*-darwin* } } } } }
38+// { dg-final { scan-assembler ".weak(ext)?\[ \t\]_?_ZTSPP1A" { target { ! { *-*-darwin* } } } } }
39+// { dg-final { scan-assembler-not ".weak(ext)?\[ \t\]_?_ZTIPP1A" { target { ! { *-*-darwin* } } } } }
40 // { dg-final { scan-assembler ".weak_definition\[ \t\]_?_ZTSPP1A" { target { *-*-darwin* } } } }
41 // { dg-final { scan-assembler-not ".weak_definition\[ \t\]_?_ZTIPP1A" { target { *-*-darwin* } } } }
42
43diff --git a/gcc/testsuite/g++.dg/abi/thunk3.C b/gcc/testsuite/g++.dg/abi/thunk3.C
44index f2347f79ec..dcec8a771a 100644
45--- a/gcc/testsuite/g++.dg/abi/thunk3.C
46+++ b/gcc/testsuite/g++.dg/abi/thunk3.C
47@@ -1,5 +1,5 @@
48 // { dg-require-weak "" }
49-// { dg-final { scan-assembler-not ".weak\[\t \]_?_ZThn._N7Derived3FooEv" { target { ! { *-*-darwin* } } } } }
50+// { dg-final { scan-assembler-not ".weak(ext)?\[\t \]_?_ZThn._N7Derived3FooEv" { target { ! { *-*-darwin* } } } } }
51 // { dg-final { scan-assembler-not ".weak_definition\[\t \]_?_ZThn._N7Derived3FooEv" { target { *-*-darwin* } } } }
52
53 struct Base
54diff --git a/gcc/testsuite/g++.dg/abi/thunk4.C b/gcc/testsuite/g++.dg/abi/thunk4.C
55index fa5fbd4327..79cb311cab 100644
56--- a/gcc/testsuite/g++.dg/abi/thunk4.C
57+++ b/gcc/testsuite/g++.dg/abi/thunk4.C
58@@ -1,6 +1,6 @@
59 // { dg-require-weak "" }
60 // { dg-skip-if "Linkonce not weak" { *-*-mingw* *-*-cygwin } { "*" } { "" } }
61-// { dg-final { scan-assembler ".weak\[ \t\]_?_ZThn._N7Derived3FooEv" { target { ! { *-*-darwin* } } } } }
62+// { dg-final { scan-assembler ".weak(ext)?\[ \t\]_?_ZThn._N7Derived3FooEv" { target { ! { *-*-darwin* } } } } }
63 // { dg-final { scan-assembler ".weak_definition\[ \t\]_?_ZThn._N7Derived3FooEv" { target { *-*-darwin* } } } }
64
65 struct Base
66--
672.14.2
68