This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug middle-end/26034] New: [4.0/4.1/4.2 Regression] gcc uses way too much stack space for this code


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]