summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorAndres Freund2017-10-11 23:01:52 +0000
committerAndres Freund2017-10-11 23:01:52 +0000
commit0b974dba2d6b5581ce422ed883209de46f313fb6 (patch)
tree06b01bcde101a73e3211b5930ea3e259b4c3c134 /configure.in
parent5fa6b0d102eb8ccd15c4963ee9841baec50df45e (diff)
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
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index 4548db0dd3c..ab990d69f4c 100644
--- a/configure.in
+++ b/configure.in
@@ -1299,6 +1299,7 @@ fi
m4_defun([AC_PROG_CC_STDC], []) dnl We don't want that.
AC_C_BIGENDIAN
AC_C_INLINE
+AC_C_RESTRICT
PGAC_PRINTF_ARCHETYPE
AC_C_FLEXIBLE_ARRAY_MEMBER
PGAC_C_SIGNED