i386.md bug + fix

Roberto Bagnara bagnara@di.unipi.it
Thu May 7 00:18:00 GMT 1998


> Could I suggest that someone tries compiling the following
> massive test case:
> 
> int
> foo (char* s)
> {
>         return strlen (s);
> }
> 
> on an i386 box using the options "-O2 -mcpu=pentium" to
> confirm it?
> 
> You will notice several pages of assembler output rather
> than the required four or so lines.

Confirmed. 39 machine instructions are generated for foo().

   Roberto

-- 
Roberto Bagnara
Department of Mathematics, University of Parma, Italy
http://www.di.unipi.it/~bagnara/bagnara.html
mailto:bagnara@di.unipi.it




More information about the Gcc-bugs mailing list