public inbox for binutils-cvs@sourceware.org
 help / color / mirror / Atom feed
* [binutils-gdb] Binutils: Readelf testcase failing with clang
@ 2022-09-14  9:28 Nick Clifton
  0 siblings, 0 replies; only message in thread
From: Nick Clifton @ 2022-09-14  9:28 UTC (permalink / raw)
  To: bfd-cvs

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=e959744eca88a4d145f39d5fbf4ab095af0f16b4

commit e959744eca88a4d145f39d5fbf4ab095af0f16b4
Author: Rupesh Potharla <Rupesh.Potharla@amd.com>
Date:   Wed Sep 14 10:27:38 2022 +0100

    Binutils: Readelf testcase failing with clang
    
            * testsuite/binutils-all/readelf.exp (readelf_wi_test): Extend
            regexps to allow for output genreated by the Clang compiler.

Diff:
---
 binutils/ChangeLog                          | 5 +++++
 binutils/testsuite/binutils-all/readelf.exp | 7 ++++---
 2 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 41a2f9cb0c7..19f76653dac 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,8 @@
+2022-09-14  Rupesh Potharla  <Rupesh.Potharla@amd.com>
+
+	* testsuite/binutils-all/readelf.exp (readelf_wi_test): Extend
+	regexps to allow for output genreated by the Clang compiler.
+
 2022-09-12  Aaron Merey  <amerey@redhat.com>
 
 	* objcopy.c (might_need_separate_debug_info): Add with_source_code to
diff --git a/binutils/testsuite/binutils-all/readelf.exp b/binutils/testsuite/binutils-all/readelf.exp
index 0f7a1f3b5a0..210ed83f1b4 100644
--- a/binutils/testsuite/binutils-all/readelf.exp
+++ b/binutils/testsuite/binutils-all/readelf.exp
@@ -188,12 +188,13 @@ proc readelf_wi_test {} {
 	".*DW_TAG_compile_unit.*"
 	".*DW_TAG_subprogram.*"
 	".*DW_TAG_base_type.*"
-	".*DW_AT_producer.*(GNU C|indirect string).*"
+	".*DW_AT_producer.*(GNU C|indirect string|indexed string).*"
 	".*DW_AT_language.*(ANSI C|C11).*"
-	".*DW_AT_name.*(testprog.c|indirect string).*"
+	".*DW_AT_name.*(testprog.c|indirect string|indexed string).*"
 	".*DW_AT_name.*fn.*"
+	".*DW_AT_name.*(main|indirect string|indexed string).*"
+	".*(DW_OP_addr: 0|DW_OP_addrx <0>).*"
 	".*DW_AT_name.*(main|indirect string).*"
-	".*\(DW_OP_addr: 0\).*"
     }
 
     # The MSP430 in LARGE mode does not generate a DW_OP_addr.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-09-14  9:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-14  9:28 [binutils-gdb] Binutils: Readelf testcase failing with clang Nick Clifton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).