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 optimization/14418] Unnecessary loads and stores for tail call


------- Additional Comments From bangerth at dealii dot org  2004-03-31 21:28 -------
Confirmed. 
 
In particular, this is not necessary: 
- after the call to bar(), the compiler tries to save the values of 
  x and y (which are in registers ebx and esi) to their original 
  locations. They should be unchanged there, so we do some unnecessary 
  stores here 
- before the call to bar, the compiler loads y into esi, which is 
  really useless since y is never used in this function except for the 
  tail call. 
 
W. 
 
W. 

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |pessimizes-code
   Last reconfirmed|0000-00-00 00:00:00         |2004-03-31 21:28:38
               date|                            |
            Summary|                            |Unnecessary loads and stores
                   |                            |for tail call


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


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