Binutils: Readelf testcase failing with clang
authorRupesh Potharla <Rupesh.Potharla@amd.com>
Wed, 14 Sep 2022 09:27:38 +0000 (10:27 +0100)
committerNick Clifton <nickc@redhat.com>
Wed, 14 Sep 2022 09:27:38 +0000 (10:27 +0100)
* testsuite/binutils-all/readelf.exp (readelf_wi_test): Extend
regexps to allow for output genreated by the Clang compiler.

binutils/ChangeLog
binutils/testsuite/binutils-all/readelf.exp

index 41a2f9cb0c79696f354147d46856648f10552b78..19f76653dacddf318dc1cc873fc32db8c877cb01 100644 (file)
@@ -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
index 0f7a1f3b5a0bc3c9731ed80e9b0c75a63b63a97b..210ed83f1b4ebb0e7e086d1318d83601f25002f0 100644 (file)
@@ -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.