* [Bug default/27400] New: odr tests fail with -gdwarf-5
@ 2021-02-12 9:57 mark at klomp dot org
2021-02-12 19:19 ` [Bug default/27400] " vries at gcc dot gnu.org
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: mark at klomp dot org @ 2021-02-12 9:57 UTC (permalink / raw)
To: dwz
https://sourceware.org/bugzilla/show_bug.cgi?id=27400
Bug ID: 27400
Summary: odr tests fail with -gdwarf-5
Product: dwz
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: default
Assignee: nobody at sourceware dot org
Reporter: mark at klomp dot org
CC: dwz at sourceware dot org
Target Milestone: ---
$ gcc --version
gcc (GCC) 10.2.1 20201125 (Red Hat 10.2.1-9)
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$ as --version
GNU assembler version 2.35-18.fc33
Copyright (C) 2020 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or later.
This program has absolutely no warranty.
This assembler was configured for a target of `x86_64-redhat-linux'.
$ export CC="gcc -gdwarf-5" CXX="g++ -gdwarf-5"
$ make clean && make && make check
[...]
Running /home/mark/dwz/testsuite/dwz.tests/dwz-tests.exp ...
child process exited abnormally
FAIL: /home/mark/dwz/testsuite/dwz.tests/odr-class-ns.sh
child process exited abnormally
FAIL: /home/mark/dwz/testsuite/dwz.tests/odr-class.sh
child process exited abnormally
FAIL: /home/mark/dwz/testsuite/dwz.tests/odr-def-decl.sh
child process exited abnormally
FAIL: /home/mark/dwz/testsuite/dwz.tests/odr-loc.sh
child process exited abnormally
FAIL: /home/mark/dwz/testsuite/dwz.tests/odr-struct-ns.sh
child process exited abnormally
FAIL: /home/mark/dwz/testsuite/dwz.tests/odr-struct.sh
child process exited abnormally
FAIL: /home/mark/dwz/testsuite/dwz.tests/odr-union-ns.sh
child process exited abnormally
FAIL: /home/mark/dwz/testsuite/dwz.tests/odr-union.sh
=== dwz Summary ===
# of expected passes 51
# of unexpected failures 8
[...]
The same can be seen with gcc11 from git trunk which defaults to -gdwarf-5 (so
you don't need any setting of CC or CXX).
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug default/27400] odr tests fail with -gdwarf-5
2021-02-12 9:57 [Bug default/27400] New: odr tests fail with -gdwarf-5 mark at klomp dot org
@ 2021-02-12 19:19 ` vries at gcc dot gnu.org
2021-02-13 8:37 ` vries at gcc dot gnu.org
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: vries at gcc dot gnu.org @ 2021-02-12 19:19 UTC (permalink / raw)
To: dwz
https://sourceware.org/bugzilla/show_bug.cgi?id=27400
Tom de Vries <vries at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |vries at gcc dot gnu.org
--- Comment #1 from Tom de Vries <vries at gcc dot gnu.org> ---
Ack, managed to reproduce, thanks.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug default/27400] odr tests fail with -gdwarf-5
2021-02-12 9:57 [Bug default/27400] New: odr tests fail with -gdwarf-5 mark at klomp dot org
2021-02-12 19:19 ` [Bug default/27400] " vries at gcc dot gnu.org
@ 2021-02-13 8:37 ` vries at gcc dot gnu.org
2021-02-13 23:18 ` vries at gcc dot gnu.org
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: vries at gcc dot gnu.org @ 2021-02-13 8:37 UTC (permalink / raw)
To: dwz
https://sourceware.org/bugzilla/show_bug.cgi?id=27400
--- Comment #2 from Tom de Vries <vries at gcc dot gnu.org> ---
I've looked at the odr-struct.sh fail.
First of all, odr is not enabled because the language is DW_LANG_C_plus_plus_14
instead of DW_LANG_C_plus_plus, so we need this in a few places:
...
case DW_LANG_C_plus_plus:
+ case DW_LANG_C_plus_plus_03:
+ case DW_LANG_C_plus_plus_11:
+ case DW_LANG_C_plus_plus_14:
...
Then, it seems the checksums for both struct aaa are different, because of
processing a DW_AT_decl_line with DW_FORM_implicit_const. The const has the
same value (according to readelf), but somehow the resulting hashes are
different.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug default/27400] odr tests fail with -gdwarf-5
2021-02-12 9:57 [Bug default/27400] New: odr tests fail with -gdwarf-5 mark at klomp dot org
2021-02-12 19:19 ` [Bug default/27400] " vries at gcc dot gnu.org
2021-02-13 8:37 ` vries at gcc dot gnu.org
@ 2021-02-13 23:18 ` vries at gcc dot gnu.org
2021-02-14 8:07 ` vries at gcc dot gnu.org
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: vries at gcc dot gnu.org @ 2021-02-13 23:18 UTC (permalink / raw)
To: dwz
https://sourceware.org/bugzilla/show_bug.cgi?id=27400
--- Comment #3 from Tom de Vries <vries at gcc dot gnu.org> ---
Created attachment 13224
--> https://sourceware.org/bugzilla/attachment.cgi?id=13224&action=edit
Tentative patch
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug default/27400] odr tests fail with -gdwarf-5
2021-02-12 9:57 [Bug default/27400] New: odr tests fail with -gdwarf-5 mark at klomp dot org
` (2 preceding siblings ...)
2021-02-13 23:18 ` vries at gcc dot gnu.org
@ 2021-02-14 8:07 ` vries at gcc dot gnu.org
2021-02-14 8:52 ` vries at gcc dot gnu.org
2021-02-14 21:25 ` vries at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: vries at gcc dot gnu.org @ 2021-02-14 8:07 UTC (permalink / raw)
To: dwz
https://sourceware.org/bugzilla/show_bug.cgi?id=27400
--- Comment #4 from Tom de Vries <vries at gcc dot gnu.org> ---
(In reply to Tom de Vries from comment #2)
> I've looked at the odr-struct.sh fail.
>
> First of all, odr is not enabled because the language is
> DW_LANG_C_plus_plus_14 instead of DW_LANG_C_plus_plus, so we need this in a
> few places:
> ...
> case DW_LANG_C_plus_plus:
> + case DW_LANG_C_plus_plus_03:
> + case DW_LANG_C_plus_plus_11:
> + case DW_LANG_C_plus_plus_14:
> ...
>
Fix in
https://sourceware.org/git/?p=dwz.git;a=commit;h=6d5673b84fa075d296d4ad4d60c03823cb773863
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug default/27400] odr tests fail with -gdwarf-5
2021-02-12 9:57 [Bug default/27400] New: odr tests fail with -gdwarf-5 mark at klomp dot org
` (3 preceding siblings ...)
2021-02-14 8:07 ` vries at gcc dot gnu.org
@ 2021-02-14 8:52 ` vries at gcc dot gnu.org
2021-02-14 21:25 ` vries at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: vries at gcc dot gnu.org @ 2021-02-14 8:52 UTC (permalink / raw)
To: dwz
https://sourceware.org/bugzilla/show_bug.cgi?id=27400
--- Comment #5 from Tom de Vries <vries at gcc dot gnu.org> ---
https://sourceware.org/pipermail/dwz/2021q1/000869.html
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug default/27400] odr tests fail with -gdwarf-5
2021-02-12 9:57 [Bug default/27400] New: odr tests fail with -gdwarf-5 mark at klomp dot org
` (4 preceding siblings ...)
2021-02-14 8:52 ` vries at gcc dot gnu.org
@ 2021-02-14 21:25 ` vries at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: vries at gcc dot gnu.org @ 2021-02-14 21:25 UTC (permalink / raw)
To: dwz
https://sourceware.org/bugzilla/show_bug.cgi?id=27400
Tom de Vries <vries at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #6 from Tom de Vries <vries at gcc dot gnu.org> ---
Fixed in
https://sourceware.org/git/?p=dwz.git;a=commit;h=4100572baed5a1dcafb43713f051bb1349482cec
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2021-02-14 21:25 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-12 9:57 [Bug default/27400] New: odr tests fail with -gdwarf-5 mark at klomp dot org
2021-02-12 19:19 ` [Bug default/27400] " vries at gcc dot gnu.org
2021-02-13 8:37 ` vries at gcc dot gnu.org
2021-02-13 23:18 ` vries at gcc dot gnu.org
2021-02-14 8:07 ` vries at gcc dot gnu.org
2021-02-14 8:52 ` vries at gcc dot gnu.org
2021-02-14 21:25 ` vries at gcc dot gnu.org
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).