aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSimon Riggs <simon@2ndQuadrant.com>2013-04-30 06:59:26 +0100
committerSimon Riggs <simon@2ndQuadrant.com>2013-04-30 06:59:26 +0100
commitfdea2530bd4afb3d512cb9700b1d8cd603fab0e7 (patch)
tree966fb2e07842479692061f33c009eb8b96be3bb9 /src
parent3d53173e20d151341f894f79d556768c845ba3e4 (diff)
downloadpostgresql-fdea2530bd4afb3d512cb9700b1d8cd603fab0e7.tar.gz
postgresql-fdea2530bd4afb3d512cb9700b1d8cd603fab0e7.zip
Compiler optimizations for page checksum code.
Ants Aasma and Jeff Davis
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.global.in1
-rw-r--r--src/backend/storage/page/Makefile3
2 files changed, 4 insertions, 0 deletions
diff --git a/src/Makefile.global.in b/src/Makefile.global.in
index 80f509fa872..89e39d2fa0a 100644
--- a/src/Makefile.global.in
+++ b/src/Makefile.global.in
@@ -219,6 +219,7 @@ CC = @CC@
GCC = @GCC@
SUN_STUDIO_CC = @SUN_STUDIO_CC@
CFLAGS = @CFLAGS@
+CFLAGS_VECTOR = @CFLAGS_VECTOR@
# Kind-of compilers
diff --git a/src/backend/storage/page/Makefile b/src/backend/storage/page/Makefile
index 82d9c37fda5..49ab40740ae 100644
--- a/src/backend/storage/page/Makefile
+++ b/src/backend/storage/page/Makefile
@@ -15,3 +15,6 @@ include $(top_builddir)/src/Makefile.global
OBJS = bufpage.o checksum.o itemptr.o
include $(top_srcdir)/src/backend/common.mk
+
+# important optimizations flags for checksum.c
+checksum.o: CFLAGS += ${CFLAGS_VECTOR}