This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Serious Optimizer Bug, Sample Code Included
- To: Ingo Schneider <schneidi at informatik dot tu-muenchen dot de>
- Subject: Re: Serious Optimizer Bug, Sample Code Included
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Thu, 16 Jul 1998 22:52:26 -0600
- cc: egcs-bugs at cygnus dot com
- Reply-To: law at cygnus dot com
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