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: Serious Optimizer Bug, Sample Code Included



  In message <35ABBA87.B46D626D@informatik.tu-muenchen.de>you write:
  > This is a multi-part message in MIME format.
  > --------------B68267AAB092F0E4F094F45A
  > Content-Type: text/plain; charset=us-ascii
  > Content-Transfer-Encoding: 7bit
  > 
  > Hello !
  > 
  > I really found an optimizer bug in egcc, and I know what I'm saying.
  > egcc Version:
  > gcc version egcs-2.90.29 980515 (egcs-1.0.3 release), Debian 2.0 (glibc).
  > 
  > Description:
  > egcc removes the initialization of the struct timeval tv in the following 
  > code, when optimizing with -O and -O2.
  > 
  > The small program generated waits 100 Seconds when compiled without -O, and
  > exits immediatly when compiled with -O.
  > 
  > Please tell me, whether this bug is known, otherwise I will have to
  > continue trying to reach someone with this bug report, because I consider
  > this to be a serious bug.
A real bug in egcs-1.0.3's g++ compiler (the C compiler handles it just fine).

The good news is it appears to have been fixed for egcs-1.1.

jeff


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