egcs-2.93.22 creates spurious local variables

Horst von Brand vonbrand@sleipnir.valparaiso.cl
Fri May 21 17:28:00 GMT 1999


This is linux on i586.

The following tiny program has egcs-2.93.{19,20,21,22} creating 12 bytes of
space for completely unused variables on the stack. egcs-1.1.2 doesn't. The 
program and assembler outputs follow. I have no earlier snapshots at hand,
so this could be an old problem.

I consider this a performance regression, as there are cases where stack
space is scarce (i.e., the Linux kernel has a very limited stack!)

The files below where compiled with -O2 -fomit-frame-pointer.



More information about the Gcc-bugs mailing list