Andrew Geissler | a9ff2b3 | 2020-10-16 10:11:54 -0500 | [diff] [blame^] | 1 | From 38ece4b2dc5d34c1b88b6ea8dd8e62a0986f8f6c 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 | a9ff2b3 | 2020-10-16 10:11:54 -0500 | [diff] [blame^] | 4 | Subject: [PATCH 07/58] [Patch, testsuite]: Allow MicroBlaze .weakext pattern |
| 5 | in regex match |
| 6 | |
| 7 | Extend regex pattern to include optional ext at the end of |
| 8 | .weak to match the MicroBlaze weak label .weakext |
Brad Bishop | 286d45c | 2018-10-02 15:21:57 -0400 | [diff] [blame] | 9 | |
| 10 | ChangeLog/testsuite |
| 11 | |
| 12 | 2014-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 | |
| 18 | Signed-off-by: David Holsgrove <david.holsgrove@xilinx.com> |
Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame] | 19 | |
| 20 | Conflicts: |
| 21 | |
| 22 | gcc/testsuite/g++.dg/abi/rtti3.C |
Brad Bishop | 286d45c | 2018-10-02 15:21:57 -0400 | [diff] [blame] | 23 | --- |
| 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 | |
| 29 | diff --git a/gcc/testsuite/g++.dg/abi/rtti3.C b/gcc/testsuite/g++.dg/abi/rtti3.C |
Andrew Geissler | a9ff2b3 | 2020-10-16 10:11:54 -0500 | [diff] [blame^] | 30 | index 0cc7d3e79d0..f284cd9255c 100644 |
Brad Bishop | 286d45c | 2018-10-02 15:21:57 -0400 | [diff] [blame] | 31 | --- 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 Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame] | 36 | // { dg-skip-if "Linkonce not weak" { *-*-mingw* *-*-cygwin } } |
Brad Bishop | 286d45c | 2018-10-02 15:21:57 -0400 | [diff] [blame] | 37 | -// { 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 | |
| 44 | diff --git a/gcc/testsuite/g++.dg/abi/thunk3.C b/gcc/testsuite/g++.dg/abi/thunk3.C |
Andrew Geissler | a9ff2b3 | 2020-10-16 10:11:54 -0500 | [diff] [blame^] | 45 | index f2347f79ecd..dcec8a771a1 100644 |
Brad Bishop | 286d45c | 2018-10-02 15:21:57 -0400 | [diff] [blame] | 46 | --- 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 |
| 55 | diff --git a/gcc/testsuite/g++.dg/abi/thunk4.C b/gcc/testsuite/g++.dg/abi/thunk4.C |
Andrew Geissler | a9ff2b3 | 2020-10-16 10:11:54 -0500 | [diff] [blame^] | 56 | index 6e8f124bc5e..d1d34fe1e4a 100644 |
Brad Bishop | 286d45c | 2018-10-02 15:21:57 -0400 | [diff] [blame] | 57 | --- 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 Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame] | 61 | // { dg-skip-if "Linkonce not weak" { *-*-mingw* *-*-cygwin } } |
Brad Bishop | 286d45c | 2018-10-02 15:21:57 -0400 | [diff] [blame] | 62 | -// { 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 Geissler | a9ff2b3 | 2020-10-16 10:11:54 -0500 | [diff] [blame^] | 68 | 2.17.1 |
Brad Bishop | 286d45c | 2018-10-02 15:21:57 -0400 | [diff] [blame] | 69 | |