mirror of
https://github.com/postgres/postgres.git
synced 2025-07-17 06:41:09 +03:00
Remove AIX support
There isn't a lot of user demand for AIX support, we have a bunch of
hacks to work around AIX-specific compiler bugs and idiosyncrasies,
and no one has stepped up to the plate to properly maintain it.
Remove support for AIX to get rid of that maintenance overhead. It's
still supported for stable versions.
The acute issue that triggered this decision was that after commit
8af2565248
, the AIX buildfarm members have been hitting this
assertion:
TRAP: failed Assert("(uintptr_t) buffer == TYPEALIGN(PG_IO_ALIGN_SIZE, buffer)"), File: "md.c", Line: 472, PID: 2949728
Apperently the "pg_attribute_aligned(a)" attribute doesn't work on AIX
for values larger than PG_IO_ALIGN_SIZE, for a static const variable.
That could be worked around, but we decided to just drop the AIX support
instead.
Discussion: https://www.postgresql.org/message-id/20240224172345.32@rfd.leadboat.com
Reviewed-by: Andres Freund, Noah Misch, Thomas Munro
This commit is contained in:
@ -1,25 +0,0 @@
|
||||
# src/template/aix
|
||||
|
||||
# Set default options if using xlc. This formerly included -qsrcmsg, but that
|
||||
# option elicits internal compiler errors from xlc v16.1.0. Note: configure
|
||||
# will add -qnoansialias if the compiler accepts it, even if user specifies a
|
||||
# non-default CFLAGS setting.
|
||||
if test "$GCC" != yes ; then
|
||||
case $host_os in
|
||||
*)
|
||||
CFLAGS="-O2 -qmaxmem=16384"
|
||||
;;
|
||||
esac
|
||||
|
||||
# Due to a compiler bug, see 20171013023536.GA492146@rfd.leadboat.com for details,
|
||||
# force restrict not to be used when compiling with xlc.
|
||||
FORCE_DISABLE_RESTRICT=yes
|
||||
fi
|
||||
|
||||
# Extra CFLAGS for code that will go into a shared library
|
||||
CFLAGS_SL=""
|
||||
|
||||
# Native memset() is faster, tested on:
|
||||
# AIX 5.1 and 5.2, XLC 6.0 (IBM's cc)
|
||||
# AIX 5.3 ML3, gcc 4.0.1
|
||||
MEMSET_LOOP_LIMIT=0
|
Reference in New Issue
Block a user