git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: a855118) | patch
Rely on inline functions even if that causes warnings in older compilers.
Wed, 5 Aug 2015 16:19:52 +0000 (18:19 +0200)
Wed, 5 Aug 2015 16:19:52 +0000 (18:19 +0200)
commit de6fd1c898f6eca82c2130a9dbb42d00da68d79e
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
29 files changed:
config/c-compiler.m4 diff | blob | blame | history
config/test_quiet_include.h [deleted file] blob | blame | history
configure diff | blob | blame | history
configure.in diff | blob | blame | history
src/backend/lib/ilist.c diff | blob | blame | history
src/backend/nodes/list.c diff | blob | blame | history
src/backend/port/atomics.c diff | blob | blame | history
src/backend/utils/adt/arrayfuncs.c diff | blob | blame | history
src/backend/utils/mmgr/mcxt.c diff | blob | blame | history
src/backend/utils/sort/sortsupport.c diff | blob | blame | history
src/include/access/gin_private.h diff | blob | blame | history
src/include/c.h diff | blob | blame | history
src/include/lib/ilist.h diff | blob | blame | history
src/include/nodes/pg_list.h diff | blob | blame | history
src/include/pg_config.h.in diff | blob | blame | history
src/include/pg_config.h.win32 diff | blob | blame | history
src/include/port/atomics.h diff | blob | blame | history
src/include/port/atomics/arch-x86.h diff | blob | blame | history
src/include/port/atomics/fallback.h diff | blob | blame | history
src/include/port/atomics/generic-acc.h diff | blob | blame | history
src/include/port/atomics/generic-gcc.h diff | blob | blame | history
src/include/port/atomics/generic-msvc.h diff | blob | blame | history
src/include/port/atomics/generic-sunpro.h diff | blob | blame | history
src/include/port/atomics/generic-xlc.h diff | blob | blame | history
src/include/port/atomics/generic.h diff | blob | blame | history
src/include/utils/arrayaccess.h diff | blob | blame | history
src/include/utils/palloc.h diff | blob | blame | history
src/include/utils/sortsupport.h diff | blob | blame | history
src/template/aix diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /