Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit ad2ad69

Browse files
committed
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
1 parent ae4867e commit ad2ad69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/include/c.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@
138138
* Testing can be done with "-fsanitize=alignment -fsanitize-trap=alignment"
139139
* on clang, or "-fsanitize=alignment -fno-sanitize-recover=alignment" on gcc.
140140
*/
141-
#if __clang_major__ >= 7 || __GNUC__ >= 5
141+
#if __clang_major__ >= 7 || __GNUC__ >= 8
142142
#define pg_attribute_no_sanitize_alignment() __attribute__((no_sanitize("alignment")))
143143
#else
144144
#define pg_attribute_no_sanitize_alignment()

0 commit comments

Comments
 (0)