public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug debug/91239] gcc generates invalid .debug_macro sections (according to lld folks) Date: Wed, 20 Apr 2022 09:30:05 +0000 [thread overview] Message-ID: <bug-91239-4-qb0qdOwvj1@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-91239-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91239 --- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> --- The .debug_macro deduplication works by computing a checksum of the ops coming from certain headers (define, undef entries mostly) and not interrupted by entries from other headers (e.g. if stdio.h has 10 define/undef directives, then include some other header that has 20 define/undef directives, then stdio.h has another 30 define/undef directives, there will be 3 comdat sections, 2 with wm4.stdio.h.* name (with the hash after it) and one for the other header). The DW_MACRO_import operands always refer to the start of such comdat section. Except for the ignored case of a hash collision, the intended behaviro is that if out of say 50 copies of wm4.stdio.h.24.5c1b97eef3c86b7a2549420f69f4f128 one is kept and the 49 are left out, all the references are adjusted to the start of the copy that is left in the ELF object.
next prev parent reply other threads:[~2022-04-20 9:30 UTC|newest] Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top [not found] <bug-91239-4@http.gcc.gnu.org/bugzilla/> 2022-04-19 18:52 ` tromey at gcc dot gnu.org 2022-04-19 20:40 ` tromey at gcc dot gnu.org 2022-04-20 6:59 ` rguenth at gcc dot gnu.org 2022-04-20 7:14 ` jakub at gcc dot gnu.org 2022-04-20 9:06 ` rui314 at gmail dot com 2022-04-20 9:07 ` rui314 at gmail dot com 2022-04-20 9:30 ` jakub at gcc dot gnu.org [this message] 2022-04-20 9:39 ` rui314 at gmail dot com 2022-04-20 9:47 ` jakub at gcc dot gnu.org 2022-04-20 9:51 ` rui314 at gmail dot com 2022-04-20 9:56 ` rui314 at gmail dot com 2022-04-20 10:04 ` jakub at gcc dot gnu.org 2022-04-20 10:06 ` rui314 at gmail dot com 2022-04-20 10:55 ` rguenther at suse dot de
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-91239-4-qb0qdOwvj1@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).