mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-12 11:53:32 +08:00
Recognize DW_LANG_C11 in readelf testsuite.
readelf_wi_test checks the DW_AT_LANGUAGE is recognized by matching against ANSI C. But for the new DWARF5 DW_LANG_C11 readelf simply prints "C11", not prefixed with ANSI (DW_LANG_C is "non-ANSI C", DW_LANG_C89 is "ANSI C" and DW_LANG_C99 is "ANSI-C99"). Adjust the testcase instead of readelf because C11 seems a fine name. binutils/ChangeLog: * testsuite/binutils-all/readelf.exp (readelf_wi_test): Also recognize DW_LANG_C11.
This commit is contained in:
parent
5014c2d22b
commit
02391b8be4
@ -1,3 +1,8 @@
|
||||
2020-08-21 Mark Wielaard <mark@klomp.org>
|
||||
|
||||
* testsuite/binutils-all/readelf.exp (readelf_wi_test): Also
|
||||
recognize DW_LANG_C11.
|
||||
|
||||
2020-08-19 Alan Modra <amodra@gmail.com>
|
||||
|
||||
PR 26349
|
||||
|
@ -188,7 +188,7 @@ proc readelf_wi_test {} {
|
||||
".*DW_TAG_subprogram.*"
|
||||
".*DW_TAG_base_type.*"
|
||||
".*DW_AT_producer.*(GNU C|indirect string).*"
|
||||
".*DW_AT_language.*ANSI C.*"
|
||||
".*DW_AT_language.*(ANSI C|C11).*"
|
||||
".*DW_AT_name.*(testprog.c|indirect string).*"
|
||||
".*DW_AT_name.*fn.*"
|
||||
".*DW_AT_name.*(main|indirect string).*"
|
||||
|
Loading…
Reference in New Issue
Block a user