This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: i386.md bug + fix
- To: alasdair at wildcat dot demon dot co dot uk (Alasdair Baird)
- Subject: Re: i386.md bug + fix
- From: Roberto Bagnara <bagnara at di dot unipi dot it>
- Date: Thu, 7 May 1998 09:15:25 +0200 (MET DST)
- Cc: egcs-bugs at cygnus dot com
- Organization: Dipartimento di Informatica, Universita` di Pisa
- Phone: +39 50 887 267
> 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