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/45997] [4.6 Regression] __unknown__ type name for typedef'd int Date: Wed, 03 Nov 2010 13:21:00 -0000 [thread overview] Message-ID: <20101103132100.dlTunpEwv7nKsNzOnz_WnNhpo3anflVLnBzBpl60ebQ@z> (raw) In-Reply-To: <bug-45997-4@http.gcc.gnu.org/bugzilla/> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45997 Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dodji at gcc dot gnu.org, | |jakub at gcc dot gnu.org --- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> 2010-11-03 13:20:55 UTC --- The DWARF standard requires a name to be emitted and that's why we do emit there something, to follow the standard. There are talks about changing this, but no changes have been made yet. That said, ideally we wouldn't be emitting nameless base types or __unknown__ named base types in this case, I guess the problem is just that we try to remove const/volatile in a fixed order and your testcase has it exactly in the opposite order. With: typedef int my_int; typedef volatile my_int volatile_my_int; typedef const volatile_my_int const_volatile_my_int; my_int v_my_int = 0; volatile_my_int v_volatile_my_int = 1; const_volatile_my_int v_const_volatile_my_int = 4; int main () { return 0; } the result is expected, always refering to the previous typedef DIE.
next prev parent reply other threads:[~2010-11-03 13:21 UTC|newest] Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top 2010-10-13 4:48 [Bug debug/45997] New: " dje at google dot com 2010-10-27 23:00 ` [Bug debug/45997] [4.6 Regression] " pinskia at gcc dot gnu.org 2010-11-03 13:21 ` jakub at gcc dot gnu.org [this message] 2010-11-03 14:08 ` jakub at gcc dot gnu.org 2010-11-08 22:39 ` dodji at gcc dot gnu.org 2010-11-12 11:59 ` dodji at gcc dot gnu.org 2010-11-12 12:05 ` dodji at gcc dot gnu.org 2010-12-06 19:34 ` jakub at gcc dot gnu.org 2010-12-06 19:41 ` jakub at gcc dot gnu.org
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=20101103132100.dlTunpEwv7nKsNzOnz_WnNhpo3anflVLnBzBpl60ebQ@z \ --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).