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]

Re: i386.md bug + fix


> 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



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