public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: Diego Novillo <dnovillo@redhat.com> To: dnovillo@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, Subject: Re: c++/5504: Optimization breaks wei-ku-1 from blitz (fwd) Date: Tue, 26 Mar 2002 05:36:00 -0000 [thread overview] Message-ID: <20020326133602.12940.qmail@sources.redhat.com> (raw) The following reply was made to PR c++/5504; it has been noted by GNATS. From: Diego Novillo <dnovillo@redhat.com> To: gcc-gnats@gcc.gnu.org Cc: Subject: Re: c++/5504: Optimization breaks wei-ku-1 from blitz (fwd) Date: Tue, 26 Mar 2002 08:30:11 -0500 Jason, Although the PR indicates that g++ ICEs, the program actually compiles. However, it takes about 7 hours and cc1plus grows to ~650 Mb. The problem seems to be in the expansion of EH cleanups. I've been comparing gcc 3.0.4 with the 3.1 branch. This is what I found so far: - Both compilers seem to generate roughly the same number of trees. They both grow to about 47 Mb right before the call to expand_stmt() in semantics.c:expand_body(). - However, when expand_stmt() is called to expand the body of main(), the 3.1 compiler grows to 415Mb, while the 3.0.4. compiler grows to about 53 Mb. - The difference is in the calls to expand_eh_region_end_cleanup() The 3.0.4 compiler calls it 76 times. The 3.1 compiler calls it 59,212 times. Not surprisingly, we spend no more than a couple of minutes generating the initial RTL, and 7 hours trying to optimize it. We seem to be generating mostly fluff because the final .s file doesn't look overly large (a couple of Mb, IIRC). - The program seems to compile fine with -fno-exceptions. Jakub tracked the problem to your destructor cleanup patch from Dec01: http://gcc.gnu.org/ml/gcc-patches/2001-12/msg01532.html I don't know enough C++ to determine whether this is to be expected or not. The test case is rather large, so it may well be that 3.0.4 was not doing the right thing. Any ideas on what to try next? Thanks. Diego.
reply other threads:[~2002-03-26 13:36 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20020326133602.12940.qmail@sources.redhat.com \ --to=dnovillo@redhat.com \ --cc=dnovillo@gcc.gnu.org \ --cc=gcc-prs@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).