pgsql: Fix portability fallout from commit dc227eb82.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Fix portability fallout from commit dc227eb82.
Дата
Msg-id E1lybZj-0000kM-3F@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Fix portability fallout from commit dc227eb82.

Give up on trying to mechanically forbid abort() within libpq.
Even though there are no such calls in the source code, we've now
seen three different scenarios where build toolchains silently
insert such calls: gcc does it for profiling, some platforms
implement assert() using it, and icc does so for no visible reason.
Checking for accidental use of exit() seems considerably more
important than checking for abort(), so we'll settle for doing
that for now.

Also, filter out __cxa_atexit() to avoid a false match.  It seems
that OpenBSD inserts a call to that despite the fact that libpq
contains no C++ code.

Discussion: https://postgr.es/m/3128896.1624742969@sss.pgh.pa.us

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/e45b0dfa1f1028948decad3abd3b0f6e913a44b0

Modified Files
--------------
src/interfaces/libpq/Makefile | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Fujii Masao
Дата:
Сообщение: pgsql: doc: Improve descriptions of tup_returned and tup_fetched in pg_
Следующее
От: David Rowley
Дата:
Сообщение: pgsql: Improve various places that double the size of a buffer