aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2021-02-12 17:33:14 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2021-02-12 17:33:14 -0500
commitad2ad698ac16f36a9784bc98f312cf5b5266c6aa (patch)
tree3b5442518b4995dfc795a029c4cbf9ab0c33b8e5 /src
parentae4867ec749671dadb5eb49a1158ded9b8ca0b29 (diff)
downloadpostgresql-ad2ad698ac16f36a9784bc98f312cf5b5266c6aa.tar.gz
postgresql-ad2ad698ac16f36a9784bc98f312cf5b5266c6aa.zip
Tweak compiler version cutoff for no_sanitize("alignment") support.
Buildfarm results show that gcc up through 7.x produces annoying warnings for this construct (and, presumably, wouldn't do the right thing anyway). clang seems okay with the cutoff we have, though. Discussion: https://postgr.es/m/CAPpHfdsne3%3DT%3DfMNU45PtxdhSL_J2PjLTeS8rwKnJzUR4YNd4w%40mail.gmail.com Discussion: https://postgr.es/m/475514.1612745257%40sss.pgh.pa.us
Diffstat (limited to 'src')
-rw-r--r--src/include/c.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/c.h b/src/include/c.h
index a86342093eb..2b45e6d6ca7 100644
--- a/src/include/c.h
+++ b/src/include/c.h
@@ -138,7 +138,7 @@
* Testing can be done with "-fsanitize=alignment -fsanitize-trap=alignment"
* on clang, or "-fsanitize=alignment -fno-sanitize-recover=alignment" on gcc.
*/
-#if __clang_major__ >= 7 || __GNUC__ >= 5
+#if __clang_major__ >= 7 || __GNUC__ >= 8
#define pg_attribute_no_sanitize_alignment() __attribute__((no_sanitize("alignment")))
#else
#define pg_attribute_no_sanitize_alignment()