This is the mail archive of the gcc@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]

Re: Local optimization on i386 ?


In article <26996.943919594@upchuck> you write:
>
>  In message <19991130004402.A1867@liafa1.liafa.jussieu.fr>you write:
>  > Is this normal  behavior on a 386 ?
>Unfortunately, yes.

Oh, ok... I meant, is there a good reason why the code is like this.

>  > I don't know enough about 386, but should't this be 
>  > subl $20, %esp ?
>  > 
>  > I assume I'm missing some obvious reason why there are two separate
>  > subs...
>Because they're emitted by two completely different parts of the compiler.

So this looks like a misoptimization bug... 
Hum... I believe I could coerce gas into peep-holing that :)

Isn't there a peep-hole pass or equivalent in gcc that could handle this ?


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