Brad Bishop | 286d45c | 2018-10-02 15:21:57 -0400 | [diff] [blame] | 1 | From 037809e91bfed9c501ecd5272ff6d3ce96edf76c Mon Sep 17 00:00:00 2001 |
| 2 | From: Mahesh Bodapati <mbodapat@xilinx.com> |
| 3 | Date: Sat, 26 Aug 2017 19:21:22 -0700 |
| 4 | Subject: [PATCH] Allow MicroBlaze .weakext pattern in testsuite |
| 5 | |
| 6 | Allow MicroBlaze .weakext pattern in regex match Extend regex pattern to |
| 7 | include optional ext at the end of .weak to match the MicroBlaze weak |
| 8 | label .weakext |
| 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> |
| 19 | Signed-off-by: Mahesh Bodapati <mbodapat@xilinx.com> |
| 20 | Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com> |
| 21 | Upstream-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 | |
| 28 | diff --git a/gcc/testsuite/g++.dg/abi/rtti3.C b/gcc/testsuite/g++.dg/abi/rtti3.C |
| 29 | index 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 | |
| 43 | diff --git a/gcc/testsuite/g++.dg/abi/thunk3.C b/gcc/testsuite/g++.dg/abi/thunk3.C |
| 44 | index 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 |
| 54 | diff --git a/gcc/testsuite/g++.dg/abi/thunk4.C b/gcc/testsuite/g++.dg/abi/thunk4.C |
| 55 | index 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 | -- |
| 67 | 2.14.2 |
| 68 | |