public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/14329] [tree-ssa] badly formatted warnings for SRA replacements used uninitialized Date: Mon, 27 Nov 2006 06:41:00 -0000 [thread overview] Message-ID: <20061127064108.18475.qmail@sourceware.org> (raw) In-Reply-To: <bug-14329-2744@http.gcc.gnu.org/bugzilla/> ------- Comment #17 from pinskia at gcc dot gnu dot org 2006-11-27 06:41 ------- Here is the patch which passes the C++ testsuite, I have to do a full bootstrap/testsuite run still but I am happy with it currrently which is why I am pasting it here: Index: error.c =================================================================== --- error.c (revision 119217) +++ error.c (working copy) @@ -2337,7 +2337,22 @@ cp_printer (pretty_printer *pp, text_inf { case 'A': result = args_to_string (next_tree, verbose); break; case 'C': result = code_to_string (next_tcode); break; - case 'D': result = decl_to_string (next_tree, verbose); break; + case 'D': + { + tree temp = next_tree; + if (DECL_P (temp) + && DECL_DEBUG_EXPR_IS_FROM (temp) && DECL_DEBUG_EXPR (temp)) + { + temp = DECL_DEBUG_EXPR (temp); + if (!DECL_P (temp)) + { + result = expr_to_string (temp); + break; + } + } + result = decl_to_string (temp, verbose); + } + break; case 'E': result = expr_to_string (next_tree); break; case 'F': result = fndecl_to_string (next_tree, verbose); break; case 'L': result = language_to_string (next_lang); break; -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14329
next prev parent reply other threads:[~2006-11-27 6:41 UTC|newest] Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top [not found] <bug-14329-2744@http.gcc.gnu.org/bugzilla/> 2005-10-23 19:58 ` [Bug c++/14329] [tree-ssa] badly formatted warnings for SRA replacements pinskia at gcc dot gnu dot org 2005-11-26 9:22 ` gdr at gcc dot gnu dot org 2006-03-11 3:17 ` mmitchel at gcc dot gnu dot org 2006-08-15 18:32 ` pinskia at gcc dot gnu dot org 2006-11-21 17:56 ` pinskia at gcc dot gnu dot org 2006-11-26 1:44 ` [Bug c++/14329] [tree-ssa] badly formatted warnings for SRA replacements used uninitialized pinskia at gcc dot gnu dot org 2006-11-26 18:25 ` pinskia at gcc dot gnu dot org 2006-11-27 5:47 ` pinskia at gcc dot gnu dot org 2006-11-27 5:50 ` Andrew Pinski 2006-11-27 5:51 ` pinskia at gmail dot com 2006-11-27 6:41 ` pinskia at gcc dot gnu dot org [this message] 2006-12-04 2:25 ` pinskia at gcc dot gnu dot org 2006-12-04 2:26 ` [Bug c++/14329] [4.1/4.2 only] " pinskia at gcc dot gnu dot org 2006-12-04 18:32 ` pinskia at gcc dot gnu dot org 2006-12-05 18:05 ` [Bug c++/14329] [4.1 " pinskia at gcc dot gnu dot org 2006-12-05 18:05 ` pinskia at gcc dot gnu dot 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=20061127064108.18475.qmail@sourceware.org \ --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).