public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: Gwenole Beauchesne <gbeauchesne@mandrakesoft.com> To: rth@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, Subject: Re: optimization/5040: g++-3.0.2: -O causes variables from different stack frames to overlap Date: Fri, 12 Apr 2002 07:46:00 -0000 [thread overview] Message-ID: <20020412144604.4762.qmail@sources.redhat.com> (raw) The following reply was made to PR optimization/5040; it has been noted by GNATS. From: Gwenole Beauchesne <gbeauchesne@mandrakesoft.com> To: rth@gcc.gnu.org, <gcc-bugs@gcc.gnu.org>, <gcc-prs@gcc.gnu.org>, <jeremy.barnes@idilia.com>, <rth@gcc.gnu.org>, <jakub@redhat.com>, <gcc-gnats@gcc.gnu.org> Cc: Subject: Re: optimization/5040: g++-3.0.2: -O causes variables from different stack frames to overlap Date: Fri, 12 Apr 2002 16:42:36 +0200 (CEST) On 4 Apr 2002 rth@gcc.gnu.org wrote: > Can't reproduce with unpatched 3.0.3 or 3.1; as yet, the > bug can only be shown vs Mandrake rpms. OK, on the Mandrake side I could isolate the problem to the following patch: - Patch604: Change heuristic for inlining of functions in C++: Rather than allowing one single function to exhaust the limit, allow only half way. Afterwards don't cut abruptly, but get more and more restrictive until a minimum size. This gives better runtime and compiletime results than the old heuristic. (Kurt Garloff, SuSE release 3.0.X-34) However, the problem is also reproductible with the unpatched FSF gcc 3.0.5 20020404 (prerelease) as follows: Jeremy's second test case will crash if compiled as -O<X> -finline-limit=399, with X = { 1, 2 } But will succeed with -finline-limit >= 400. Jakub, hadn't you encountered a glibc miscompilation with gcc-3.1 when the -finline-limit was too low and the tree inliner used? Could it be related to this problem? > Re-open or create a new PR when you get a chance to try > your complete application vs gcc 3.1. Is the new data enough to re-open or create a new PR? Bye, Gwenole.
next reply other threads:[~2002-04-12 14:46 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top 2002-04-12 7:46 Gwenole Beauchesne [this message] -- strict thread matches above, loose matches on Subject: below -- 2002-04-08 13:06 Richard Henderson 2002-04-08 13:06 Gwenole Beauchesne 2002-04-08 12:26 Jeremy Barnes 2002-04-03 17:20 rth 2002-04-03 14:09 rth 2002-04-03 10:36 Richard Henderson 2002-04-03 8:26 Jeremy Barnes 2002-04-03 1:41 rth 2001-12-06 13:36 jeremy.barnes
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=20020412144604.4762.qmail@sources.redhat.com \ --to=gbeauchesne@mandrakesoft.com \ --cc=gcc-prs@gcc.gnu.org \ --cc=rth@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).