This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: [BUG] of optimizer
- To: Sergey Okhapkin <sos at prospect dot com dot ru>
- Subject: Re: [BUG] of optimizer
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Sat, 04 Jul 1998 22:59:17 -0600
- cc: "'egcs-bugs at cygnus dot com'" <egcs-bugs at cygnus dot com>
- Reply-To: law at cygnus dot com
In message <01BD8D49.9D78CA70@drs>you write:
> D:\usr\src\tests>gcc -v
> Reading specs from \usr\H-i386-cygwin32\lib\gcc-lib\i386-cygwin32\egcs-2.91
> .34\s
> pecs
> gcc version egcs-2.91.34 19980531 (gcc2 ss-980502 experimental)
>
> When optimization is enabled, the compiler emits a wrong code for the follo
> wing C sample:
>
> D:\usr\src\tests>cat bug.c
> int f(unsigned char *p, unsigned char *e)
> {
> unsigned char *savep;
> savep=p;
> if(f1(&p, e) < 0)
> return -1;
> return p-savep;
> }
I believe Mark Mitchell will be installing a patch for this shortly if he
hasn't already done so.
jeff