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: [BUG] of optimizer



  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


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