pgsql: Add configure infrastructure to detect support for C99's restric

From: Andres Freund <andres(at)anarazel(dot)de>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Add configure infrastructure to detect support for C99's restric
Date: 2017-10-11 23:11:15
Message-ID: E1e2Q9j-000183-L0@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

Add configure infrastructure to detect support for C99's restrict.

Will be used in later commits improving performance for a few key
routines where information about aliasing allows for significantly
better code generation.

This allows to use the C99 'restrict' keyword without breaking C89, or
for that matter C++, compilers. If not supported it's defined to be
empty.

Author: Andres Freund
Discussion: https://postgr.es/m/20170914063418.sckdzgjfrsbekae4@alap3.anarazel.de

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/0b974dba2d6b5581ce422ed883209de46f313fb6

Modified Files
--------------
configure | 46 +++++++++++++++++++++++++++++++++++++++++++
configure.in | 1 +
src/include/pg_config.h.in | 14 +++++++++++++
src/include/pg_config.h.win32 | 11 +++++++++++
4 files changed, 72 insertions(+)

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Andres Freund 2017-10-11 23:35:39 pgsql: Use one stringbuffer for all rows printed in printtup.c.
Previous Message Tom Lane 2017-10-11 21:47:29 Re: pgsql: Remove unnecessary PG_TRY overhead for CurrentResourceOwner chan

Browse pgsql-hackers by date

  From Date Subject
Next Message Tatsuo Ishii 2017-10-11 23:50:26 Re: [PATCH] Lockable views
Previous Message Michael Paquier 2017-10-11 23:11:06 Re: Is it time to kill support for very old servers?