-O3 is bad, bug 76331
authorCiaran McCreesh <ciaranm@gentoo.org>
Sat, 1 Jan 2005 22:55:35 +0000 (22:55 +0000)
committerCiaran McCreesh <ciaranm@gentoo.org>
Sat, 1 Jan 2005 22:55:35 +0000 (22:55 +0000)
eclass/vim.eclass

index 8e02241c3a3679a29b8c2fa0696457502097a368..7971e393d2eeee6113a1f38f373509a1a062bdb5 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2004 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/vim.eclass,v 1.86 2004/12/18 22:55:53 spb Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/vim.eclass,v 1.87 2005/01/01 22:55:35 ciaranm Exp $
 
 # Authors:
 #      Ryan Phillips <rphillips@gentoo.org>
@@ -264,6 +264,11 @@ src_compile() {
        # Bug 57859 suggests that we want to do this for all archs
        filter-flags -funroll-all-loops
 
+       # Fix bug 76331: -O3 causes problems, use -O2 instead. We'll do this for
+       # everyone since previous flag filtering bugs have turned out to affect
+       # multiple archs...
+       replace-flags -O3 -O2
+
        # Fix bug 18245: Prevent "make" from the following chain:
        # (1) Notice configure.in is newer than auto/configure
        # (2) Rebuild auto/configure