pg.ddx.io pgsql-committers@postgresql.org mailing list archive
help / color / mirror / Atom feedpgsql: Disable -faggressive-loop-optimizations in gcc 4.8+ for pre-9.2
12+ messages / 6 participants
[nested] [flat]
* pgsql: Disable -faggressive-loop-optimizations in gcc 4.8+ for pre-9.2
@ 2013-08-21 22:32 Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 12+ messages in thread
From: Tom Lane @ 2013-08-21 22:32 UTC (permalink / raw)
To: pgsql-committers
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.
Andres Freund
Branch
------
REL9_1_STABLE
Details
-------
http://git.postgresql.org/pg/commitdiff/649839dd9f1c08b7aadb654587edd9f86a3caa3f
Modified Files
--------------
configure | 62 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
configure.in | 3 +++
2 files changed, 65 insertions(+)
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
^ permalink raw reply [nested|flat] 12+ messages in thread
* pgsql: Disable -faggressive-loop-optimizations in gcc 4.8+ for pre-9.2
@ 2013-08-21 22:32 Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 12+ messages in thread
From: Tom Lane @ 2013-08-21 22:32 UTC (permalink / raw)
To: pgsql-committers
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.
Andres Freund
Branch
------
REL9_0_STABLE
Details
-------
http://git.postgresql.org/pg/commitdiff/e9e387a5b1dde0b738d712cffe16c962e87b0094
Modified Files
--------------
configure | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
configure.in | 3 +++
2 files changed, 55 insertions(+)
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
^ permalink raw reply [nested|flat] 12+ messages in thread
* pgsql: Disable -faggressive-loop-optimizations in gcc 4.8+ for pre-9.2
@ 2013-08-21 22:32 Tom Lane <tgl@sss.pgh.pa.us>
2015-01-20 15:30 ` Re: [COMMITTERS] pgsql: Disable -faggressive-loop-optimizations in gcc 4.8+ for pre-9.2 Alvaro Herrera <alvherre@2ndquadrant.com>
0 siblings, 1 reply; 12+ messages in thread
From: Tom Lane @ 2013-08-21 22:32 UTC (permalink / raw)
To: pgsql-committers
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.
Andres Freund
Branch
------
REL8_4_STABLE
Details
-------
http://git.postgresql.org/pg/commitdiff/8396d230fa489c8766ce0a9128bb0d8e5ff6667e
Modified Files
--------------
configure | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++
configure.in | 3 +++
2 files changed, 54 insertions(+)
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
^ permalink raw reply [nested|flat] 12+ messages in thread
* Re: [COMMITTERS] pgsql: Disable -faggressive-loop-optimizations in gcc 4.8+ for pre-9.2
2013-08-21 22:32 pgsql: Disable -faggressive-loop-optimizations in gcc 4.8+ for pre-9.2 Tom Lane <tgl@sss.pgh.pa.us>
@ 2015-01-20 15:30 ` Alvaro Herrera <alvherre@2ndquadrant.com>
2015-01-20 16:10 ` Re: Re: [COMMITTERS] pgsql: Disable -faggressive-loop-optimizations in gcc 4.8+ for pre-9.2 Robert Haas <robertmhaas@gmail.com>
0 siblings, 1 reply; 12+ messages in thread
From: Alvaro Herrera @ 2015-01-20 15:30 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-hackers@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
^ permalink raw reply [nested|flat] 12+ messages in thread
* Re: Re: [COMMITTERS] pgsql: Disable -faggressive-loop-optimizations in gcc 4.8+ for pre-9.2
2013-08-21 22:32 pgsql: Disable -faggressive-loop-optimizations in gcc 4.8+ for pre-9.2 Tom Lane <tgl@sss.pgh.pa.us>
2015-01-20 15:30 ` Re: [COMMITTERS] pgsql: Disable -faggressive-loop-optimizations in gcc 4.8+ for pre-9.2 Alvaro Herrera <alvherre@2ndquadrant.com>
@ 2015-01-20 16:10 ` Robert Haas <robertmhaas@gmail.com>
2015-01-20 16:15 ` Re: Re: [COMMITTERS] pgsql: Disable -faggressive-loop-optimizations in gcc 4.8+ for pre-9.2 Andres Freund <andres@2ndquadrant.com>
2015-01-20 16:18 ` Re: Re: [COMMITTERS] pgsql: Disable -faggressive-loop-optimizations in gcc 4.8+ for pre-9.2 Alvaro Herrera <alvherre@2ndquadrant.com>
0 siblings, 2 replies; 12+ messages in thread
From: Robert Haas @ 2015-01-20 16:10 UTC (permalink / raw)
To: Alvaro Herrera <alvherre@2ndquadrant.com>; +Cc: Tom Lane <tgl@sss.pgh.pa.us>; pgsql-hackers@postgresql.org <pgsql-hackers@postgresql.org>
On Tue, Jan 20, 2015 at 10:30 AM, Alvaro Herrera
<alvherre@2ndquadrant.com> wrote:
> 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?
Since those branches are out of support, I am not sure what the point
is. If we want people to be able to use those branches reasonably we
need to back-port fixes for critical security and stability issues,
not just this one thing.
But maybe I am missing something.
--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
^ permalink raw reply [nested|flat] 12+ messages in thread
* Re: Re: [COMMITTERS] pgsql: Disable -faggressive-loop-optimizations in gcc 4.8+ for pre-9.2
2013-08-21 22:32 pgsql: Disable -faggressive-loop-optimizations in gcc 4.8+ for pre-9.2 Tom Lane <tgl@sss.pgh.pa.us>
2015-01-20 15:30 ` Re: [COMMITTERS] pgsql: Disable -faggressive-loop-optimizations in gcc 4.8+ for pre-9.2 Alvaro Herrera <alvherre@2ndquadrant.com>
2015-01-20 16:10 ` Re: Re: [COMMITTERS] pgsql: Disable -faggressive-loop-optimizations in gcc 4.8+ for pre-9.2 Robert Haas <robertmhaas@gmail.com>
@ 2015-01-20 16:15 ` Andres Freund <andres@2ndquadrant.com>
2015-01-21 10:32 ` Re: Re: [COMMITTERS] pgsql: Disable -faggressive-loop-optimizations in gcc 4.8+ for pre-9.2 Bernd Helmle <mailings@oopsware.de>
1 sibling, 1 reply; 12+ messages in thread
From: Andres Freund @ 2015-01-20 16:15 UTC (permalink / raw)
To: Robert Haas <robertmhaas@gmail.com>; +Cc: Alvaro Herrera <alvherre@2ndquadrant.com>; Tom Lane <tgl@sss.pgh.pa.us>; pgsql-hackers@postgresql.org <pgsql-hackers@postgresql.org>
On 2015-01-20 11:10:53 -0500, Robert Haas wrote:
> On Tue, Jan 20, 2015 at 10:30 AM, Alvaro Herrera
> <alvherre@2ndquadrant.com> wrote:
> > 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?
>
> Since those branches are out of support, I am not sure what the point
> is. If we want people to be able to use those branches reasonably we
> need to back-port fixes for critical security and stability issues,
> not just this one thing.
>
> But maybe I am missing something.
Supporting and being able to compile and run 'make check' (which doesn't
complete >= gcc 4.8) aren't the same thing though. And we e.g. try to
provide pg_dump and libpq support for older versions, which is hard to
ensure if you can't run them.
I personally think that being able to at least compile/make check old
versions a bit longer is a good idea.
Greetings,
Andres Freund
--
Andres Freund http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, 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
^ permalink raw reply [nested|flat] 12+ messages in thread
* Re: Re: [COMMITTERS] pgsql: Disable -faggressive-loop-optimizations in gcc 4.8+ for pre-9.2
2013-08-21 22:32 pgsql: Disable -faggressive-loop-optimizations in gcc 4.8+ for pre-9.2 Tom Lane <tgl@sss.pgh.pa.us>
2015-01-20 15:30 ` Re: [COMMITTERS] pgsql: Disable -faggressive-loop-optimizations in gcc 4.8+ for pre-9.2 Alvaro Herrera <alvherre@2ndquadrant.com>
2015-01-20 16:10 ` Re: Re: [COMMITTERS] pgsql: Disable -faggressive-loop-optimizations in gcc 4.8+ for pre-9.2 Robert Haas <robertmhaas@gmail.com>
2015-01-20 16:15 ` Re: Re: [COMMITTERS] pgsql: Disable -faggressive-loop-optimizations in gcc 4.8+ for pre-9.2 Andres Freund <andres@2ndquadrant.com>
@ 2015-01-21 10:32 ` Bernd Helmle <mailings@oopsware.de>
2015-01-21 12:38 ` Re: Re: [COMMITTERS] pgsql: Disable -faggressive-loop-optimizations in gcc 4.8+ for pre-9.2 Alvaro Herrera <alvherre@2ndquadrant.com>
0 siblings, 1 reply; 12+ messages in thread
From: Bernd Helmle @ 2015-01-21 10:32 UTC (permalink / raw)
To: Andres Freund <andres@2ndquadrant.com>; Robert Haas <robertmhaas@gmail.com>; +Cc: Alvaro Herrera <alvherre@2ndquadrant.com>; Tom Lane <tgl@sss.pgh.pa.us>; pgsql-hackers@postgresql.org
--On 20. Januar 2015 17:15:01 +0100 Andres Freund <andres@2ndquadrant.com>
wrote:
> I personally think that being able to at least compile/make check old
> versions a bit longer is a good idea.
+1 from me for this idea.
--
Thanks
Bernd
--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
^ permalink raw reply [nested|flat] 12+ messages in thread
* Re: Re: [COMMITTERS] pgsql: Disable -faggressive-loop-optimizations in gcc 4.8+ for pre-9.2
2013-08-21 22:32 pgsql: Disable -faggressive-loop-optimizations in gcc 4.8+ for pre-9.2 Tom Lane <tgl@sss.pgh.pa.us>
2015-01-20 15:30 ` Re: [COMMITTERS] pgsql: Disable -faggressive-loop-optimizations in gcc 4.8+ for pre-9.2 Alvaro Herrera <alvherre@2ndquadrant.com>
2015-01-20 16:10 ` Re: Re: [COMMITTERS] pgsql: Disable -faggressive-loop-optimizations in gcc 4.8+ for pre-9.2 Robert Haas <robertmhaas@gmail.com>
2015-01-20 16:15 ` Re: Re: [COMMITTERS] pgsql: Disable -faggressive-loop-optimizations in gcc 4.8+ for pre-9.2 Andres Freund <andres@2ndquadrant.com>
2015-01-21 10:32 ` Re: Re: [COMMITTERS] pgsql: Disable -faggressive-loop-optimizations in gcc 4.8+ for pre-9.2 Bernd Helmle <mailings@oopsware.de>
@ 2015-01-21 12:38 ` Alvaro Herrera <alvherre@2ndquadrant.com>
0 siblings, 0 replies; 12+ messages in thread
From: Alvaro Herrera @ 2015-01-21 12:38 UTC (permalink / raw)
To: Bernd Helmle <mailings@oopsware.de>; +Cc: Andres Freund <andres@2ndquadrant.com>; Robert Haas <robertmhaas@gmail.com>; Tom Lane <tgl@sss.pgh.pa.us>; pgsql-hackers@postgresql.org
Bernd Helmle wrote:
>
>
> --On 20. Januar 2015 17:15:01 +0100 Andres Freund <andres@2ndquadrant.com>
> wrote:
>
> >I personally think that being able to at least compile/make check old
> >versions a bit longer is a good idea.
>
> +1 from me for this idea.
Already done yesterday :-)
Thanks,
--
Á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
^ permalink raw reply [nested|flat] 12+ messages in thread
* Re: Re: [COMMITTERS] pgsql: Disable -faggressive-loop-optimizations in gcc 4.8+ for pre-9.2
2013-08-21 22:32 pgsql: Disable -faggressive-loop-optimizations in gcc 4.8+ for pre-9.2 Tom Lane <tgl@sss.pgh.pa.us>
2015-01-20 15:30 ` Re: [COMMITTERS] pgsql: Disable -faggressive-loop-optimizations in gcc 4.8+ for pre-9.2 Alvaro Herrera <alvherre@2ndquadrant.com>
2015-01-20 16:10 ` Re: Re: [COMMITTERS] pgsql: Disable -faggressive-loop-optimizations in gcc 4.8+ for pre-9.2 Robert Haas <robertmhaas@gmail.com>
@ 2015-01-20 16:18 ` Alvaro Herrera <alvherre@2ndquadrant.com>
2015-01-20 16:23 ` Re: Re: [COMMITTERS] pgsql: Disable -faggressive-loop-optimizations in gcc 4.8+ for pre-9.2 Robert Haas <robertmhaas@gmail.com>
1 sibling, 1 reply; 12+ messages in thread
From: Alvaro Herrera @ 2015-01-20 16:18 UTC (permalink / raw)
To: Robert Haas <robertmhaas@gmail.com>; +Cc: Tom Lane <tgl@sss.pgh.pa.us>; pgsql-hackers@postgresql.org <pgsql-hackers@postgresql.org>
Robert Haas wrote:
> > Would anybody object to me pushing this commit to branches 8.2 and 8.3?
>
> Since those branches are out of support, I am not sure what the point
> is. If we want people to be able to use those branches reasonably we
> need to back-port fixes for critical security and stability issues,
> not just this one thing.
>
> But maybe I am missing something.
I just want to make it easy to compile those branches with current
toolset so that I can study their behavior to suggest workarounds for
customer problems etc -- nothing more. I am not proposing to open them
up again for support. Of course, I can carry the patched branches
locally if there is strong opposition, but since it's harmless, I don't
see why would there be any such. Another easy workaround is to add -O0
to CFLAGS, and I can script that easily too.
Without this patch or -O0, initdb fails with
inicializando pg_authid ... FATAL: wrong number of index expressions
SENTENCIA: CREATE TRIGGER pg_sync_pg_database AFTER INSERT OR UPDATE OR DELETE ON pg_database FOR EACH STATEMENT EXECUTE PROCEDURE flatfile_update_trigger();
There is the additional problem that contrib/cube fails to compile, but
I don't care enough about that one:
/pgsql/source/REL8_3_STABLE/contrib/cube/cubeparse.y:61:17: error: ‘result’ undeclared (first use in this function)
*((void **)result) = write_box( dim, $2, $4 );
^
--
Á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
^ permalink raw reply [nested|flat] 12+ messages in thread
* Re: Re: [COMMITTERS] pgsql: Disable -faggressive-loop-optimizations in gcc 4.8+ for pre-9.2
2013-08-21 22:32 pgsql: Disable -faggressive-loop-optimizations in gcc 4.8+ for pre-9.2 Tom Lane <tgl@sss.pgh.pa.us>
2015-01-20 15:30 ` Re: [COMMITTERS] pgsql: Disable -faggressive-loop-optimizations in gcc 4.8+ for pre-9.2 Alvaro Herrera <alvherre@2ndquadrant.com>
2015-01-20 16:10 ` Re: Re: [COMMITTERS] pgsql: Disable -faggressive-loop-optimizations in gcc 4.8+ for pre-9.2 Robert Haas <robertmhaas@gmail.com>
2015-01-20 16:18 ` Re: Re: [COMMITTERS] pgsql: Disable -faggressive-loop-optimizations in gcc 4.8+ for pre-9.2 Alvaro Herrera <alvherre@2ndquadrant.com>
@ 2015-01-20 16:23 ` Robert Haas <robertmhaas@gmail.com>
0 siblings, 0 replies; 12+ messages in thread
From: Robert Haas @ 2015-01-20 16:23 UTC (permalink / raw)
To: Alvaro Herrera <alvherre@2ndquadrant.com>; +Cc: Tom Lane <tgl@sss.pgh.pa.us>; pgsql-hackers@postgresql.org <pgsql-hackers@postgresql.org>
On Tue, Jan 20, 2015 at 11:18 AM, Alvaro Herrera
<alvherre@2ndquadrant.com> wrote:
> Robert Haas wrote:
>> > Would anybody object to me pushing this commit to branches 8.2 and 8.3?
>>
>> Since those branches are out of support, I am not sure what the point
>> is. If we want people to be able to use those branches reasonably we
>> need to back-port fixes for critical security and stability issues,
>> not just this one thing.
>>
>> But maybe I am missing something.
>
> I just want to make it easy to compile those branches with current
> toolset so that I can study their behavior to suggest workarounds for
> customer problems etc -- nothing more. I am not proposing to open them
> up again for support.
Oh, I see. Well, that doesn't bother me, then.
--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
^ permalink raw reply [nested|flat] 12+ messages in thread
* pgsql: Disable -faggressive-loop-optimizations in gcc 4.8+ for pre-9.2
@ 2015-01-20 17:16 Alvaro Herrera <alvherre@alvh.no-ip.org>
0 siblings, 0 replies; 12+ messages in thread
From: Alvaro Herrera @ 2015-01-20 17:16 UTC (permalink / raw)
To: pgsql-committers
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.
Andres Freund
This is a backpatch of commit 649839dd9 to unsupported branches
REL8_2_STABLE and REL8_3_STABLE, so that they work with newer toolsets.
Branch
------
REL8_3_STABLE
Details
-------
http://git.postgresql.org/pg/commitdiff/d13f41d2153890bf817451c152a83d2867e61199
Modified Files
--------------
configure | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++
configure.in | 3 +++
2 files changed, 54 insertions(+)
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
^ permalink raw reply [nested|flat] 12+ messages in thread
* pgsql: Disable -faggressive-loop-optimizations in gcc 4.8+ for pre-9.2
@ 2015-01-20 17:16 Alvaro Herrera <alvherre@alvh.no-ip.org>
0 siblings, 0 replies; 12+ messages in thread
From: Alvaro Herrera @ 2015-01-20 17:16 UTC (permalink / raw)
To: pgsql-committers
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.
Andres Freund
This is a backpatch of commit 649839dd9 to unsupported branches
REL8_2_STABLE and REL8_3_STABLE, so that they work with newer toolsets.
Branch
------
REL8_2_STABLE
Details
-------
http://git.postgresql.org/pg/commitdiff/105f3ef492abd22985321b64e8f40e58f3a15a83
Modified Files
--------------
configure | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
configure.in | 3 +++
2 files changed, 58 insertions(+)
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
^ permalink raw reply [nested|flat] 12+ messages in thread
end of thread, other threads:[~2015-01-21 12:38 UTC | newest]
Thread overview: 12+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2013-08-21 22:32 pgsql: Disable -faggressive-loop-optimizations in gcc 4.8+ for pre-9.2 Tom Lane <tgl@sss.pgh.pa.us>
2013-08-21 22:32 pgsql: Disable -faggressive-loop-optimizations in gcc 4.8+ for pre-9.2 Tom Lane <tgl@sss.pgh.pa.us>
2013-08-21 22:32 pgsql: Disable -faggressive-loop-optimizations in gcc 4.8+ for pre-9.2 Tom Lane <tgl@sss.pgh.pa.us>
2015-01-20 15:30 ` Alvaro Herrera <alvherre@2ndquadrant.com>
2015-01-20 16:10 ` Robert Haas <robertmhaas@gmail.com>
2015-01-20 16:15 ` Andres Freund <andres@2ndquadrant.com>
2015-01-21 10:32 ` Bernd Helmle <mailings@oopsware.de>
2015-01-21 12:38 ` Alvaro Herrera <alvherre@2ndquadrant.com>
2015-01-20 16:18 ` Alvaro Herrera <alvherre@2ndquadrant.com>
2015-01-20 16:23 ` Robert Haas <robertmhaas@gmail.com>
2015-01-20 17:16 pgsql: Disable -faggressive-loop-optimizations in gcc 4.8+ for pre-9.2 Alvaro Herrera <alvherre@alvh.no-ip.org>
2015-01-20 17:16 pgsql: Disable -faggressive-loop-optimizations in gcc 4.8+ for pre-9.2 Alvaro Herrera <alvherre@alvh.no-ip.org>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox