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: Testcase for optimizer bug i686-pc-linux-gnulibc1



  In message <3545A1BB.366306A6@neuss.netsurf.de>you write:
  > Hello again,
  > 
  > I have created a minimalistic source piece that compiles and shows the
  > error I reported yesterday in the optimizer of egcs-980425, (it has been
  > there before, but I can not tell when it appeared, but I checked it
  > against egcs-980321 and it is there too).Maybe this helps.
  > 
  > What happens is that compiled with gcc versions 2.7.3 or 2.8.1 I can use
  > optimization on this short piece of code and it works as expected. With
  > egcs I can not use
  > optimization (without -O the generated code seems to be ok). With -O the
  > ++m part of the call seems to be evaluated incorrectly because whatever
  > happens the result is one too high.
Thanks.  Jim fixed this bug last week.

I simplified and standardized your test and added it to the testsuite.

Thanks!


jeff


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