Support gcc -fkeep-inline-functions
authorPeter Eisentraut <peter@eisentraut.org>
Fri, 15 Jul 2022 10:05:01 +0000 (12:05 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Fri, 15 Jul 2022 10:12:30 +0000 (12:12 +0200)
commit3e9ca526012b0913db8285211ee52d5d6225334d
tree9ee47376768ef7785e50b9e8de60d5ad9260508a
parent80ad91ea8cfca6c817034423fc889876217c67af
Support gcc -fkeep-inline-functions

For some systems, we need to avoid unsatisfied-external-reference
errors in static inlines.  See
27d2693187d1bcf2563ee7142ba37d4788c8d52b for example.  In order to
test that on other systems, the gcc option -fkeep-inline-functions can
be used.  But it actually is a bit stricter than what we currently
have in place, so fix up a few more places along the lines of the
above commit.  (This undoes part of commit
2cd2569c72b8920048e35c31c9be30a6170e1410.)

(Note, this does not add that gcc option anywhere to the build system,
it just makes it possible to use it successfully manually.)

Discussion: https://www.postgresql.org/message-id/flat/E1oBgIW-002ehP-VJ%40gemulon.postgresql.org
src/include/storage/bufpage.h
src/include/utils/rel.h
src/include/utils/snapmgr.h