Andrew Geissler | 84ad7c5 | 2020-06-27 00:00:16 -0500 | [diff] [blame] | 1 | From c210044f15df2433438b6b74e5c2bcf79458c2e4 Mon Sep 17 00:00:00 2001 |
Brad Bishop | 286d45c | 2018-10-02 15:21:57 -0400 | [diff] [blame] | 2 | From: Mahesh Bodapati <mbodapat@xilinx.com> |
Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame] | 3 | Date: Thu, 12 Jan 2017 16:14:15 +0530 |
Andrew Geissler | 84ad7c5 | 2020-06-27 00:00:16 -0500 | [diff] [blame] | 4 | Subject: [PATCH 07/63] [Patch, testsuite]: Allow MicroBlaze .weakext pattern |
Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame] | 5 | in regex match Extend regex pattern to include optional ext at the end of |
| 6 | .weak to match the MicroBlaze weak label .weakext |
Brad Bishop | 286d45c | 2018-10-02 15:21:57 -0400 | [diff] [blame] | 7 | |
| 8 | ChangeLog/testsuite |
| 9 | |
| 10 | 2014-02-14 David Holsgrove <david.holsgrove@xilinx.com> |
| 11 | |
| 12 | * gcc/testsuite/g++.dg/abi/rtti3.C: Extend scan-assembler |
| 13 | pattern to take optional ext after .weak. |
| 14 | * gcc/testsuite/g++.dg/abi/thunk4.C: Likewise. |
| 15 | |
| 16 | Signed-off-by: David Holsgrove <david.holsgrove@xilinx.com> |
Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame] | 17 | |
| 18 | Conflicts: |
| 19 | |
| 20 | gcc/testsuite/g++.dg/abi/rtti3.C |
Brad Bishop | 286d45c | 2018-10-02 15:21:57 -0400 | [diff] [blame] | 21 | --- |
| 22 | gcc/testsuite/g++.dg/abi/rtti3.C | 4 ++-- |
| 23 | gcc/testsuite/g++.dg/abi/thunk3.C | 2 +- |
| 24 | gcc/testsuite/g++.dg/abi/thunk4.C | 2 +- |
| 25 | 3 files changed, 4 insertions(+), 4 deletions(-) |
| 26 | |
| 27 | diff --git a/gcc/testsuite/g++.dg/abi/rtti3.C b/gcc/testsuite/g++.dg/abi/rtti3.C |
Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame] | 28 | index 0cc7d3e..f284cd9 100644 |
Brad Bishop | 286d45c | 2018-10-02 15:21:57 -0400 | [diff] [blame] | 29 | --- a/gcc/testsuite/g++.dg/abi/rtti3.C |
| 30 | +++ b/gcc/testsuite/g++.dg/abi/rtti3.C |
| 31 | @@ -3,8 +3,8 @@ |
| 32 | |
| 33 | // { dg-require-weak "" } |
Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame] | 34 | // { dg-skip-if "Linkonce not weak" { *-*-mingw* *-*-cygwin } } |
Brad Bishop | 286d45c | 2018-10-02 15:21:57 -0400 | [diff] [blame] | 35 | -// { dg-final { scan-assembler ".weak\[ \t\]_?_ZTSPP1A" { target { ! { *-*-darwin* hppa*-*-hpux* } } } } } |
| 36 | -// { dg-final { scan-assembler-not ".weak\[ \t\]_?_ZTIPP1A" { target { ! { *-*-darwin* } } } } } |
| 37 | +// { dg-final { scan-assembler ".weak(ext)?\[ \t\]_?_ZTSPP1A" { target { ! { *-*-darwin* } } } } } |
| 38 | +// { dg-final { scan-assembler-not ".weak(ext)?\[ \t\]_?_ZTIPP1A" { target { ! { *-*-darwin* } } } } } |
| 39 | // { dg-final { scan-assembler ".weak_definition\[ \t\]_?_ZTSPP1A" { target { *-*-darwin* } } } } |
| 40 | // { dg-final { scan-assembler-not ".weak_definition\[ \t\]_?_ZTIPP1A" { target { *-*-darwin* } } } } |
| 41 | |
| 42 | diff --git a/gcc/testsuite/g++.dg/abi/thunk3.C b/gcc/testsuite/g++.dg/abi/thunk3.C |
Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame] | 43 | index f2347f7..dcec8a7 100644 |
Brad Bishop | 286d45c | 2018-10-02 15:21:57 -0400 | [diff] [blame] | 44 | --- a/gcc/testsuite/g++.dg/abi/thunk3.C |
| 45 | +++ b/gcc/testsuite/g++.dg/abi/thunk3.C |
| 46 | @@ -1,5 +1,5 @@ |
| 47 | // { dg-require-weak "" } |
| 48 | -// { dg-final { scan-assembler-not ".weak\[\t \]_?_ZThn._N7Derived3FooEv" { target { ! { *-*-darwin* } } } } } |
| 49 | +// { dg-final { scan-assembler-not ".weak(ext)?\[\t \]_?_ZThn._N7Derived3FooEv" { target { ! { *-*-darwin* } } } } } |
| 50 | // { dg-final { scan-assembler-not ".weak_definition\[\t \]_?_ZThn._N7Derived3FooEv" { target { *-*-darwin* } } } } |
| 51 | |
| 52 | struct Base |
| 53 | diff --git a/gcc/testsuite/g++.dg/abi/thunk4.C b/gcc/testsuite/g++.dg/abi/thunk4.C |
Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame] | 54 | index 6e8f124..d1d34fe 100644 |
Brad Bishop | 286d45c | 2018-10-02 15:21:57 -0400 | [diff] [blame] | 55 | --- a/gcc/testsuite/g++.dg/abi/thunk4.C |
| 56 | +++ b/gcc/testsuite/g++.dg/abi/thunk4.C |
| 57 | @@ -1,6 +1,6 @@ |
| 58 | // { dg-require-weak "" } |
Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame] | 59 | // { dg-skip-if "Linkonce not weak" { *-*-mingw* *-*-cygwin } } |
Brad Bishop | 286d45c | 2018-10-02 15:21:57 -0400 | [diff] [blame] | 60 | -// { dg-final { scan-assembler ".weak\[ \t\]_?_ZThn._N7Derived3FooEv" { target { ! { *-*-darwin* } } } } } |
| 61 | +// { dg-final { scan-assembler ".weak(ext)?\[ \t\]_?_ZThn._N7Derived3FooEv" { target { ! { *-*-darwin* } } } } } |
| 62 | // { dg-final { scan-assembler ".weak_definition\[ \t\]_?_ZThn._N7Derived3FooEv" { target { *-*-darwin* } } } } |
| 63 | |
| 64 | struct Base |
| 65 | -- |
Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame] | 66 | 2.7.4 |
Brad Bishop | 286d45c | 2018-10-02 15:21:57 -0400 | [diff] [blame] | 67 | |