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 tree-optimization/16987] [3.5 Regression] Excessive stack allocation (totally unused)


------- Additional Comments From giovannibajo at libero dot it  2004-08-11 19:44 -------
The stack allocation problem is present in GCC since at least GCC 3.2.2, and 
the tree optimizers didn't fix it.

2.95.3 allocated more stack space without the constructor but less stack space 
with the constructor:

-       subl $20,%esp
+       subl $36,%esp

So we now allocate 64 bytes instead of 36. I flag this as a regression, which 
is surely important for any kind of embedded targets.

The missed optimization which Andrew speaks about in comment #1 is a known 
problem already tracked elsewhere (as he said).

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|                            |3.3.3 3.4.0 3.5.0
      Known to work|                            |2.95.3


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


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