Re: Silent gcc 4.2.0 loop optimization bug with -O2

From: Andrey Chernov <ache_at_nagual.pp.ru>
Date: Mon, 25 Jun 2007 19:45:35 +0400
On Mon, Jun 25, 2007 at 05:38:40PM +0200, Ed Schouten wrote:
> * Andrey Chernov <ache_at_nagual.pp.ru> wrote:
> > I am not familiar with gcc bugs reporting system at all. Could somebody 
> > running 4.2.1 snapshot tells, is it already fixed, by chance? If no, could 
> > sumebody fill bug report to them or provide detailed instructions how to 
> > do that, please?
> 
> I couldn't find a similar bug in Bugzilla (though my knowledge of GCC
> internals is quite poor), so I opened a new bug:
> 
> 	http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32500

Thanx!
Is it safe to change flags to -O1 per your report?
Any objections on the following workaround patch to -current?

--- sys.mk.orig	2007-06-25 19:42:40.000000000 +0400
+++ sys.mk	2007-06-25 19:43:01.000000000 +0400
_at__at_ -35,7 +35,7 _at__at_
 CFLAGS		?=	-O
 .else
 CC		?=	cc
-CFLAGS		?=	-O2 -fno-strict-aliasing -pipe
+CFLAGS		?=	-O1 -pipe
 .endif
 
 CXX		?=	c++


-- 
http://ache.pp.ru/

Received on Mon Jun 25 2007 - 13:45:37 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:13 UTC