public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug debug/98755] New: [11 regression] r11-6755 causes failure in g++.dg/debug/dwarf2/constexpr-var-1.C
@ 2021-01-19 22:09 seurer at gcc dot gnu.org
2021-01-20 7:32 ` [Bug debug/98755] " rguenth at gcc dot gnu.org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: seurer at gcc dot gnu.org @ 2021-01-19 22:09 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98755
Bug ID: 98755
Summary: [11 regression] r11-6755 causes failure in
g++.dg/debug/dwarf2/constexpr-var-1.C
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: debug
Assignee: unassigned at gcc dot gnu.org
Reporter: seurer at gcc dot gnu.org
Target Milestone: ---
g:3804e937b0e252a7e42632fe6d9f898f1851a49c, r11-6755
make -k check-gcc
RUNTESTFLAGS="dwarf2.exp=g++.dg/debug/dwarf2/constexpr-var-1.C"
FAIL: g++.dg/debug/dwarf2/constexpr-var-1.C scan-assembler-times
DW_AT_const_expr 2
# of expected passes 1
# of unexpected failures 1
commit 3804e937b0e252a7e42632fe6d9f898f1851a49c (HEAD, refs/bisect/bad)
Author: Mark Wielaard <mark@klomp.org>
Date: Tue Sep 29 15:52:44 2020 +0200
Default to DWARF5
gcc/ChangeLog:
* common.opt (gdwarf-): Init(5).
* doc/invoke.texi (-gdwarf): Document default to 5.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug debug/98755] [11 regression] r11-6755 causes failure in g++.dg/debug/dwarf2/constexpr-var-1.C
2021-01-19 22:09 [Bug debug/98755] New: [11 regression] r11-6755 causes failure in g++.dg/debug/dwarf2/constexpr-var-1.C seurer at gcc dot gnu.org
@ 2021-01-20 7:32 ` rguenth at gcc dot gnu.org
2021-01-20 9:55 ` mark at gcc dot gnu.org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-01-20 7:32 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98755
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P1
Target Milestone|--- |11.0
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug debug/98755] [11 regression] r11-6755 causes failure in g++.dg/debug/dwarf2/constexpr-var-1.C
2021-01-19 22:09 [Bug debug/98755] New: [11 regression] r11-6755 causes failure in g++.dg/debug/dwarf2/constexpr-var-1.C seurer at gcc dot gnu.org
2021-01-20 7:32 ` [Bug debug/98755] " rguenth at gcc dot gnu.org
@ 2021-01-20 9:55 ` mark at gcc dot gnu.org
2021-02-10 7:02 ` cvs-commit at gcc dot gnu.org
2021-02-10 7:02 ` jakub at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: mark at gcc dot gnu.org @ 2021-01-20 9:55 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98755
Mark Wielaard <mark at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Build|powerpc64*-linux-gnu |
Target|powerpc64*-linux-gnu |
Host|powerpc64*-linux-gnu |
CC| |jakub at redhat dot com,
| |jason at redhat dot com,
| |law at gcc dot gnu.org
--- Comment #1 from Mark Wielaard <mark at gcc dot gnu.org> ---
This isn't ppc64 specific and was also reported in
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98728
> This is https://gcc.gnu.org/pipermail/gcc-patches/2020-August/552474.html
> There is a suggested fix, but no consensus on whether that is a good one:
> https://gcc.gnu.org/pipermail/gcc-patches/2020-September/553102.html
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug debug/98755] [11 regression] r11-6755 causes failure in g++.dg/debug/dwarf2/constexpr-var-1.C
2021-01-19 22:09 [Bug debug/98755] New: [11 regression] r11-6755 causes failure in g++.dg/debug/dwarf2/constexpr-var-1.C seurer at gcc dot gnu.org
2021-01-20 7:32 ` [Bug debug/98755] " rguenth at gcc dot gnu.org
2021-01-20 9:55 ` mark at gcc dot gnu.org
@ 2021-02-10 7:02 ` cvs-commit at gcc dot gnu.org
2021-02-10 7:02 ` jakub at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-02-10 7:02 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98755
--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jakub Jelinek <jakub@gcc.gnu.org>:
https://gcc.gnu.org/g:e1782d8ad10dc6b556e118fd25fdaff04ce54dde
commit r11-7162-ge1782d8ad10dc6b556e118fd25fdaff04ce54dde
Author: Jakub Jelinek <jakub@redhat.com>
Date: Wed Feb 10 07:54:30 2021 +0100
dwarf2out: Don't prune static data members initialized with constants with
-gdwarf-5 [PR98755]
In DWARF4 and earlier, static data members were represented as
DW_TAG_member and the
pruning code wouldn't prune those, but in DWARF5 they are represented as
DW_TAG_variable
with the class parent and the pruning code prunes those by default unless
they are
referenced from a separate definition without the class parent (out of
class definition).
C++17 inline vars have the definitions in the class though and even before
if the static
data member isn't ODR used, it doesn't need to be defined, so we could just
never describe
those static data members in the debug info.
This change stops the pruning of DW_TAG_variable with DW_AT_const_value
attribute
with a class parent for -gdwarf-5 and later.
This fixes
-FAIL: g++.dg/debug/dwarf2/constexpr-var-1.C scan-assembler-times
DW_AT_const_expr 2
-FAIL: libstdc++-prettyprinters/80276.cc whatis p4
-FAIL: libstdc++-prettyprinters/80276.cc whatis p4
-FAIL: libstdc++-prettyprinters/libfundts.cc print as
-FAIL: libstdc++-prettyprinters/libfundts.cc print as
-FAIL: libstdc++-prettyprinters/libfundts.cc print os
-FAIL: libstdc++-prettyprinters/libfundts.cc print os
2021-02-10 Jakub Jelinek <jakub@redhat.com>
PR debug/98755
* dwarf2out.c (prune_unused_types_walk): Mark DW_TAG_variable DIEs
at class scope for DWARF5+.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug debug/98755] [11 regression] r11-6755 causes failure in g++.dg/debug/dwarf2/constexpr-var-1.C
2021-01-19 22:09 [Bug debug/98755] New: [11 regression] r11-6755 causes failure in g++.dg/debug/dwarf2/constexpr-var-1.C seurer at gcc dot gnu.org
` (2 preceding siblings ...)
2021-02-10 7:02 ` cvs-commit at gcc dot gnu.org
@ 2021-02-10 7:02 ` jakub at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: jakub at gcc dot gnu.org @ 2021-02-10 7:02 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98755
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|UNCONFIRMED |RESOLVED
CC| |jakub at gcc dot gnu.org
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Fixed.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2021-02-10 7:02 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-19 22:09 [Bug debug/98755] New: [11 regression] r11-6755 causes failure in g++.dg/debug/dwarf2/constexpr-var-1.C seurer at gcc dot gnu.org
2021-01-20 7:32 ` [Bug debug/98755] " rguenth at gcc dot gnu.org
2021-01-20 9:55 ` mark at gcc dot gnu.org
2021-02-10 7:02 ` cvs-commit at gcc dot gnu.org
2021-02-10 7:02 ` jakub 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).