Add configure infrastructure to detect support for C99's restrict.
authorAndres Freund <andres@anarazel.de>
Wed, 11 Oct 2017 23:01:52 +0000 (16:01 -0700)
committerAndres Freund <andres@anarazel.de>
Wed, 11 Oct 2017 23:01:52 +0000 (16:01 -0700)
commit0b974dba2d6b5581ce422ed883209de46f313fb6
tree06b01bcde101a73e3211b5930ea3e259b4c3c134
parent5fa6b0d102eb8ccd15c4963ee9841baec50df45e
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
configure
configure.in
src/include/pg_config.h.in
src/include/pg_config.h.win32