Silent gcc 4.2.0 loop optimization bug with -O2

Andrey Chernov ache at nagual.pp.ru
Mon Jun 25 15:45:37 UTC 2007


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
@@ -35,7 +35,7 @@
 CFLAGS		?=	-O
 .else
 CC		?=	cc
-CFLAGS		?=	-O2 -fno-strict-aliasing -pipe
+CFLAGS		?=	-O1 -pipe
 .endif
 
 CXX		?=	c++


-- 
http://ache.pp.ru/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20070625/7d26956a/attachment.pgp


More information about the freebsd-current mailing list