diff options
author | Andres Freund | 2017-10-13 18:54:59 +0000 |
---|---|---|
committer | Andres Freund | 2017-10-13 19:15:06 +0000 |
commit | d133982d598c7e6208d16cb4fc0b552151796603 (patch) | |
tree | b6d6f6d66febae9a59e43fb2e9b3c5a1419427d1 /src | |
parent | 6393613b6a1e0feae3d22af608397b252cee5b58 (diff) |
Force "restrict" not to be used when compiling with xlc.
Per buildfarm animal Hornet and followup manual testing by Noah Misch,
it appears xlc miscompiles code using "restrict" in at least some
cases. Allow disabling restrict usage with FORCE_DISABLE_RESTRICT=yes
in template files, and do so for aix/xlc.
Author: Andres Freund and Tom Lane
Discussion: https://postgr.es/m/1820.1507918762@sss.pgh.pa.us
Diffstat (limited to 'src')
-rw-r--r-- | src/template/aix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/template/aix b/src/template/aix index b566ff129df..ed832849dae 100644 --- a/src/template/aix +++ b/src/template/aix @@ -10,6 +10,10 @@ if test "$GCC" != yes ; then CFLAGS="-O2 -qmaxmem=16384 -qsrcmsg" ;; esac + + # Due to a compiler bug, see 20171013023536.GA492146@rfd.leadboat.com for details, + # force restrict not to be used when compiling with xlc. + FORCE_DISABLE_RESTRICT=yes fi # Native memset() is faster, tested on: |