Re: [PATCH] fix compilation with gnu89 - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [PATCH] fix compilation with gnu89
Date
Msg-id 1155714.1606712809@sss.pgh.pa.us
Whole thread Raw
In response to Re: [PATCH] fix compilation with gnu89  (Andres Freund <andres@anarazel.de>)
List pgsql-hackers
Andres Freund <andres@anarazel.de> writes:
> On 2020-11-29 20:33:41 -0800, Rosen Penev wrote:
>> GCC 4.8.5 does not default to gnu99 or gnu11 like the newer versions.

> We require C99 support since postgres 12, and configure should end up
> choosing flags to make the compiler support that if possible.

Hmm, yeah, that's a good point ... why didn't configure select
"-std=gnu99" for you?  This might boil down to trying to use
CFLAGS selected for one compiler with a different compiler.

            regards, tom lane



pgsql-hackers by date:

Previous
From: Krunal Bauskar
Date:
Subject: Re: Improving spin-lock implementation on ARM.
Next
From: Kyotaro Horiguchi
Date:
Subject: Re: Disable WAL logging to speed up data loading