mirror of
https://github.com/postgres/postgres.git
synced 2025-11-21 00:42:43 +03:00
Remove traces of support for Sun Studio compiler
Per discussion, this compiler suite is no longer maintained, and it has not been able to compile PostgreSQL since at least PostgreSQL 17. This removes all the remaining support code for this compiler. Note that the Solaris operating system continues to be supported, but using GCC as the compiler. Reviewed-by: Andres Freund <andres@anarazel.de> Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://www.postgresql.org/message-id/flat/a0f817ee-fb86-483a-8a14-b6f7f5991b6e%40eisentraut.org
This commit is contained in:
@@ -14,26 +14,3 @@ CFLAGS_SL="-fPIC"
|
||||
|
||||
# If --enable-profiling is specified, we need -DLINUX_PROFILE
|
||||
PLATFORM_PROFILE_FLAGS="-DLINUX_PROFILE"
|
||||
|
||||
if test "$SUN_STUDIO_CC" = "yes" ; then
|
||||
CC="$CC -Xa" # relaxed ISO C mode
|
||||
CFLAGS="-v" # -v is like gcc -Wall
|
||||
if test "$enable_debug" != yes; then
|
||||
CFLAGS="$CFLAGS -O" # any optimization breaks debug
|
||||
fi
|
||||
|
||||
# Pick the right test-and-set (TAS) code for the Sun compiler.
|
||||
# We would like to use in-line assembler, but the compiler
|
||||
# requires *.il files to be on every compile line, making
|
||||
# the build system too fragile.
|
||||
case $host_cpu in
|
||||
sparc)
|
||||
need_tas=yes
|
||||
tas_file=sunstudio_sparc.s
|
||||
;;
|
||||
i?86|x86_64)
|
||||
need_tas=yes
|
||||
tas_file=sunstudio_x86.s
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
@@ -1,31 +1,4 @@
|
||||
# src/template/solaris
|
||||
|
||||
# Extra CFLAGS for code that will go into a shared library
|
||||
if test "$GCC" = yes ; then
|
||||
CFLAGS_SL="-fPIC"
|
||||
else
|
||||
CFLAGS_SL="-KPIC"
|
||||
fi
|
||||
|
||||
if test "$SUN_STUDIO_CC" = yes ; then
|
||||
CC="$CC -Xa" # relaxed ISO C mode
|
||||
CFLAGS="-v" # -v is like gcc -Wall
|
||||
if test "$enable_debug" != yes; then
|
||||
CFLAGS="$CFLAGS -O" # any optimization breaks debug
|
||||
fi
|
||||
|
||||
# Pick the right test-and-set (TAS) code for the Sun compiler.
|
||||
# We would like to use in-line assembler, but the compiler
|
||||
# requires *.il files to be on every compile line, making
|
||||
# the build system too fragile.
|
||||
case $host_cpu in
|
||||
sparc)
|
||||
need_tas=yes
|
||||
tas_file=sunstudio_sparc.s
|
||||
;;
|
||||
i?86|x86_64)
|
||||
need_tas=yes
|
||||
tas_file=sunstudio_x86.s
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
CFLAGS_SL="-fPIC"
|
||||
|
||||
Reference in New Issue
Block a user