postgresql/src/backend/utils/sort
Andres Freund de6fd1c898 Rely on inline functions even if that causes warnings in older compilers.
So far we have worked around the fact that some very old compilers do
not support 'inline' functions by only using inline functions
conditionally (or not at all). Since such compilers are very rare by
now, we have decided to rely on inline functions from 9.6 onwards.

To avoid breaking these old compilers inline is defined away when not
supported. That'll cause "function x defined but not used" type of
warnings, but since nobody develops on such compilers anymore that's
ok.

This change in policy will allow us to more easily employ inline
functions.

I chose to remove code previously conditional on PG_USE_INLINE as it
seemed confusing to have code dependent on a define that's always
defined.

Blacklisting of compilers, like in c53f73879f, now has to be done
differently. A platform template can define PG_FORCE_DISABLE_INLINE to
force inline to be defined empty.

Discussion: 20150701161447.GB30708@awork2.anarazel.de
2015-08-05 18:19:52 +02:00
..
.gitignore
gen_qsort_tuple.pl Fix a low-probability crash in our qsort implementation. 2015-07-16 22:57:46 -04:00
logtape.c Use FLEXIBLE_ARRAY_MEMBER in a number of other places. 2015-02-21 16:12:14 -05:00
Makefile
sortsupport.c Rely on inline functions even if that causes warnings in older compilers. 2015-08-05 18:19:52 +02:00
tuplesort.c Fix bogus "out of memory" reports in tuplestore.c. 2015-08-04 18:18:46 -04:00
tuplestore.c Fix bogus "out of memory" reports in tuplestore.c. 2015-08-04 18:18:46 -04:00