Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YDal2-00012X-Fk for pgsql-hackers@arkaria.postgresql.org; Tue, 20 Jan 2015 15:30:20 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YDal2-0002Nk-0c for pgsql-hackers@arkaria.postgresql.org; Tue, 20 Jan 2015 15:30:20 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YDal0-0002NI-QW for pgsql-hackers@postgresql.org; Tue, 20 Jan 2015 15:30:18 +0000 Received: from outmail149043.authsmtp.co.uk ([62.13.149.43]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YDakx-0003ik-17 for pgsql-hackers@postgresql.org; Tue, 20 Jan 2015 15:30:16 +0000 Received: from mail-c237.authsmtp.com (mail-c237.authsmtp.com [62.13.128.237]) by punt17.authsmtp.com (8.14.2/8.14.2/) with ESMTP id t0KFUCCS004162; Tue, 20 Jan 2015 15:30:12 GMT Received: from alvin.alvh.no-ip.org (client-186-37-50-128.imovil.entelpcs.cl [186.37.50.128] (may be forged)) (authenticated bits=0) by mail.authsmtp.com (8.14.2/8.14.2/) with ESMTP id t0KFU5G7027065; Tue, 20 Jan 2015 15:30:07 GMT Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id 14BCD5B8; Tue, 20 Jan 2015 12:30:21 -0300 (CLST) Date: Tue, 20 Jan 2015 12:30:21 -0300 From: Alvaro Herrera To: Tom Lane Cc: pgsql-hackers@postgresql.org Subject: Re: [COMMITTERS] pgsql: Disable -faggressive-loop-optimizations in gcc 4.8+ for pre-9.2 Message-ID: <20150120153020.GN1663@alvh.no-ip.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-Server-Quench: 3782fb28-a0b9-11e4-9f74-002590a135d3 X-AuthReport-Spam: If SPAM / abuse - report it at: http://www.authsmtp.com/abuse X-AuthRoute: OCdxZQATClZcSBoa BzkeAQdJTRslYBtL RB4bawxAL0wMSABN M15eIxoJcUtGHRZ7 UjgUWVRVVU1wXGl2 awBRZUtcakxQXAJ0 VUhXQ1BaCwBgBgMB SFoeKW8XcnJBeHx3 ZUBnEHNfVEQ0dkF1 QBgGF2UbNGcyYX0e URVcagoCdwdXfh9H b1l/BXIOZDEEKBg1 TUcAFBcUGBRjFAlv eTRFNV0JWEJZVhI9 XBkIGThnWEMMSCop Igc9K0ARWUIWNV13 NkM9WFcZIRYOCwpY BAlMBk0RKFIKD3Zt XUASU0kEWCVHTGIN REdA X-Authentic-SMTP: 61633235383639.1024:706 X-AuthFastPath: 0 (Was 255) X-AuthSMTP-Origin: 186.37.50.128/587 X-AuthVirus-Status: No virus detected - but ensure you scan with your own anti-virus system. X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Tom Lane wrote: > Disable -faggressive-loop-optimizations in gcc 4.8+ for pre-9.2 branches. > > With this optimization flag enabled, recent versions of gcc can generate > incorrect code that assumes variable-length arrays (such as oidvector) > are actually fixed-length because they're embedded in some larger struct. > The known instance of this problem was fixed in 9.2 and up by commit > 8137f2c32322c624e0431fac1621e8e9315202f9 and followon work, which hides > actually-variable-length catalog fields from the compiler altogether. > And we plan to gradually convert variable-length fields to official > "flexible array member" notation over time, which should prevent this type > of bug from reappearing as gcc gets smarter. We're not going to try to > back-port those changes into older branches, though, so apply this > band-aid instead. Would anybody object to me pushing this commit to branches 8.2 and 8.3? -- Álvaro Herrera http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers