public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/26034]  New: [4.0/4.1/4.2 Regression] gcc uses way too much stack space for this code
@ 2006-01-30 14:44 pinskia at gcc dot gnu dot org
  2006-02-03 19:25 ` [Bug middle-end/26034] " pinskia at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-01-30 14:44 UTC (permalink / raw)
  To: gcc-bugs

Take the following code:
typedef struct a
{
  int f[1000];
  void g();
  a operator=(const a&);
} a;
a f(void);
int g(void)
{
 a t; t =  f();
}

in 4.0, we use 20008 bytes for the stack.
In 4.2 and 4.1, we use 16024 bytes for the stack.
In 3.4 and 3.3, we use 12024 bytes for the stack.

This is semi reduced from PR 25505 (there is another case in there already).


-- 
           Summary: [4.0/4.1/4.2 Regression] gcc uses way too much stack
                    space for this code
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Keywords: missed-optimization
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pinskia at gcc dot gnu dot org
OtherBugsDependingO 25505
             nThis:


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26034


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-02-03 16:15 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-30 14:44 [Bug middle-end/26034] New: [4.0/4.1/4.2 Regression] gcc uses way too much stack space for this code pinskia at gcc dot gnu dot org
2006-02-03 19:25 ` [Bug middle-end/26034] " pinskia at gcc dot gnu dot org
2006-02-14  8:58 ` mmitchel at gcc dot gnu dot org
2006-02-14 15:12 ` [Bug middle-end/26034] [4.0 " rguenth at gcc dot gnu dot org
2006-03-11  3:19 ` mmitchel at gcc dot gnu dot org
2007-02-03 16:15 ` gdr at gcc dot gnu dot org

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).