Define pg_attribute_cold and pg_attribute_hot macros
authorDavid Rowley <[email protected]>
Mon, 23 Nov 2020 22:29:28 +0000 (11:29 +1300)
committerDavid Rowley <[email protected]>
Mon, 23 Nov 2020 22:29:28 +0000 (11:29 +1300)
commit697e1d02f53f985992a4f479b0b08fca5c272c6c
tree4e5cf5d43395338179f36c790c6137a8e9e34c75
parent3b9b01f75d6e2d7bf9e0bf8ec958ce420aa037c2
Define pg_attribute_cold and pg_attribute_hot macros

For compilers supporting __has_attribute and __has_attribute (hot/cold).

__has_attribute is supported on gcc >= 5, clang >= 2.9 and icc >= 17.

A followup commit will implement some usages of these macros.

Author: David Rowley
Reviewed-by: Andres Freund, Peter Eisentraut
Discussion: https://postgr.es/m/CAApHDvrVpasrEzLL2er7p9iwZFZ%3DJj6WisePcFeunwfrV0js_A%40mail.gmail.com
src/include/c.h