blob: 4d1e2017bf98e1a981c65e8b8966bc5086cb4e82 [file] [log] [blame]
Andrew Geisslera9ff2b32020-10-16 10:11:54 -05001From 38ece4b2dc5d34c1b88b6ea8dd8e62a0986f8f6c Mon Sep 17 00:00:00 2001
Brad Bishop286d45c2018-10-02 15:21:57 -04002From: Mahesh Bodapati <mbodapat@xilinx.com>
Brad Bishop26bdd442019-08-16 17:08:17 -04003Date: Thu, 12 Jan 2017 16:14:15 +0530
Andrew Geisslera9ff2b32020-10-16 10:11:54 -05004Subject: [PATCH 07/58] [Patch, testsuite]: Allow MicroBlaze .weakext pattern
5 in regex match
6
7Extend regex pattern to include optional ext at the end of
8.weak to match the MicroBlaze weak label .weakext
Brad Bishop286d45c2018-10-02 15:21:57 -04009
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>
Brad Bishop26bdd442019-08-16 17:08:17 -040019
20Conflicts:
21
22 gcc/testsuite/g++.dg/abi/rtti3.C
Brad Bishop286d45c2018-10-02 15:21:57 -040023---
24 gcc/testsuite/g++.dg/abi/rtti3.C | 4 ++--
25 gcc/testsuite/g++.dg/abi/thunk3.C | 2 +-
26 gcc/testsuite/g++.dg/abi/thunk4.C | 2 +-
27 3 files changed, 4 insertions(+), 4 deletions(-)
28
29diff --git a/gcc/testsuite/g++.dg/abi/rtti3.C b/gcc/testsuite/g++.dg/abi/rtti3.C
Andrew Geisslera9ff2b32020-10-16 10:11:54 -050030index 0cc7d3e79d0..f284cd9255c 100644
Brad Bishop286d45c2018-10-02 15:21:57 -040031--- a/gcc/testsuite/g++.dg/abi/rtti3.C
32+++ b/gcc/testsuite/g++.dg/abi/rtti3.C
33@@ -3,8 +3,8 @@
34
35 // { dg-require-weak "" }
Brad Bishop26bdd442019-08-16 17:08:17 -040036 // { dg-skip-if "Linkonce not weak" { *-*-mingw* *-*-cygwin } }
Brad Bishop286d45c2018-10-02 15:21:57 -040037-// { dg-final { scan-assembler ".weak\[ \t\]_?_ZTSPP1A" { target { ! { *-*-darwin* hppa*-*-hpux* } } } } }
38-// { dg-final { scan-assembler-not ".weak\[ \t\]_?_ZTIPP1A" { target { ! { *-*-darwin* } } } } }
39+// { dg-final { scan-assembler ".weak(ext)?\[ \t\]_?_ZTSPP1A" { target { ! { *-*-darwin* } } } } }
40+// { dg-final { scan-assembler-not ".weak(ext)?\[ \t\]_?_ZTIPP1A" { target { ! { *-*-darwin* } } } } }
41 // { dg-final { scan-assembler ".weak_definition\[ \t\]_?_ZTSPP1A" { target { *-*-darwin* } } } }
42 // { dg-final { scan-assembler-not ".weak_definition\[ \t\]_?_ZTIPP1A" { target { *-*-darwin* } } } }
43
44diff --git a/gcc/testsuite/g++.dg/abi/thunk3.C b/gcc/testsuite/g++.dg/abi/thunk3.C
Andrew Geisslera9ff2b32020-10-16 10:11:54 -050045index f2347f79ecd..dcec8a771a1 100644
Brad Bishop286d45c2018-10-02 15:21:57 -040046--- a/gcc/testsuite/g++.dg/abi/thunk3.C
47+++ b/gcc/testsuite/g++.dg/abi/thunk3.C
48@@ -1,5 +1,5 @@
49 // { dg-require-weak "" }
50-// { dg-final { scan-assembler-not ".weak\[\t \]_?_ZThn._N7Derived3FooEv" { target { ! { *-*-darwin* } } } } }
51+// { dg-final { scan-assembler-not ".weak(ext)?\[\t \]_?_ZThn._N7Derived3FooEv" { target { ! { *-*-darwin* } } } } }
52 // { dg-final { scan-assembler-not ".weak_definition\[\t \]_?_ZThn._N7Derived3FooEv" { target { *-*-darwin* } } } }
53
54 struct Base
55diff --git a/gcc/testsuite/g++.dg/abi/thunk4.C b/gcc/testsuite/g++.dg/abi/thunk4.C
Andrew Geisslera9ff2b32020-10-16 10:11:54 -050056index 6e8f124bc5e..d1d34fe1e4a 100644
Brad Bishop286d45c2018-10-02 15:21:57 -040057--- a/gcc/testsuite/g++.dg/abi/thunk4.C
58+++ b/gcc/testsuite/g++.dg/abi/thunk4.C
59@@ -1,6 +1,6 @@
60 // { dg-require-weak "" }
Brad Bishop26bdd442019-08-16 17:08:17 -040061 // { dg-skip-if "Linkonce not weak" { *-*-mingw* *-*-cygwin } }
Brad Bishop286d45c2018-10-02 15:21:57 -040062-// { dg-final { scan-assembler ".weak\[ \t\]_?_ZThn._N7Derived3FooEv" { target { ! { *-*-darwin* } } } } }
63+// { dg-final { scan-assembler ".weak(ext)?\[ \t\]_?_ZThn._N7Derived3FooEv" { target { ! { *-*-darwin* } } } } }
64 // { dg-final { scan-assembler ".weak_definition\[ \t\]_?_ZThn._N7Derived3FooEv" { target { *-*-darwin* } } } }
65
66 struct Base
67--
Andrew Geisslera9ff2b32020-10-16 10:11:54 -0500682.17.1
Brad Bishop286d45c2018-10-02 15:21:57 -040069