summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorKevin Adler <kadler@us.ibm.com>2020-11-16 15:16:10 (GMT)
committerGitHub <noreply@github.com>2020-11-16 15:16:10 (GMT)
commitc79667ff7921444911e8a5dfa5fba89294915590 (patch)
tree507ad56a5b4cb66d08c7aeb9c20c7389d250bf9b /Modules
parentae6cd7cfdab0599139002c526953d907696d9eef (diff)
downloadcpython-c79667ff7921444911e8a5dfa5fba89294915590.zip
cpython-c79667ff7921444911e8a5dfa5fba89294915590.tar.gz
cpython-c79667ff7921444911e8a5dfa5fba89294915590.tar.bz2
bpo-42087: Remove support for AIX 5.3 and below (GH-22830)
As AIX 5.3 and below do not support thread_cputime, it was decided in https://bugs.python.org/issue40680 to require AIX 6.1 and above. This commit removes workarounds for — and references to — older, unsupported AIX versions.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_localemodule.c1
-rwxr-xr-xModules/makexp_aix44
2 files changed, 17 insertions, 28 deletions
diff --git a/Modules/_localemodule.c b/Modules/_localemodule.c
index 7b3597e..869e3f8 100644
--- a/Modules/_localemodule.c
+++ b/Modules/_localemodule.c
@@ -556,7 +556,6 @@ static struct langinfo_constant{
LANGINFO(PM_STR),
/* The following constants are available only with XPG4, but...
- AIX 3.2. only has CODESET.
OpenBSD doesn't have CODESET but has T_FMT_AMPM, and doesn't have
a few of the others.
Solution: ifdef-test them all. */
diff --git a/Modules/makexp_aix b/Modules/makexp_aix
index cb349c2..b39d93b 100755
--- a/Modules/makexp_aix
+++ b/Modules/makexp_aix
@@ -3,7 +3,7 @@
# ===========================================================================
# FILE: makexp_aix
# TYPE: standalone executable
-# SYSTEM: AIX 3.2.5 and AIX 4
+# SYSTEM: AIX
#
# DESCRIPTION: This script creates an export list of ALL global symbols
# from a list of object or archive files.
@@ -48,34 +48,24 @@ echo "*" >> $expFileName
echo "* $notemsg" >> $expFileName
echo "*" >> $expFileName
-# Extract the symbol list using 'nm' which produces quite
-# different output under AIX 4 than under AIX 3.2.5.
-# The following handles both versions by using a common flagset.
+# Extract the symbol list using 'nm'
# Here are some hidden tricks:
-# 1. Use /usr/ccs/bin/nm. Relevant to AIX 3.2.5 which has
-# another version under /usr/ucb/bin/nm.
-# 2. Use the -B flag to have a standard BSD representation
-# of the symbol list on both AIX 3.2.5 and AIX 4. The "-B"
-# flag is missing in the AIX 3.2.5 online usage help of 'nm'.
-# 3. Use the -x flag to have a hex representation of the symbol
-# values. This fills the leading whitespaces on AIX 4,
-# thus simplifying the sed statement.
-# 4. Eliminate all entries except those with either "B", "D"
-# or "T" key letters. We are interested only in the global
-# (extern) BSS, DATA and TEXT symbols. With the same statement
-# we eliminate object member lines relevant to AIX 4.
-# 5. Eliminate entries containing a dot. We can have a dot only
-# as a symbol prefix, but such symbols are undefined externs.
-# 6. Eliminate everything including the key letter, so that we're
-# left with just the symbol name.
-# 7. Eliminate all entries containing two colons, like Class::method
+# - Use the -B flag to have a standard BSD representation
+# of the symbol list.
+# - Use the -x flag to have a hex representation of the symbol
+# values. This fills the leading whitespaces, thus simplifying
+# the sed statement.
+# - Eliminate all entries except those with either "B", "D"
+# or "T" key letters. We are interested only in the global
+# (extern) BSS, DATA and TEXT symbols. With the same statement
+# we eliminate object member lines relevant to AIX 4.
+# - Eliminate entries containing a dot. We can have a dot only
+# as a symbol prefix, but such symbols are undefined externs.
+# - Eliminate everything including the key letter, so that we're
+# left with just the symbol name.
+# - Eliminate all entries containing two colons, like Class::method
#
-# Use -X32_64 if it appears to be implemented in this version of 'nm'.
-NM=/usr/ccs/bin/nm
-xopt=-X32_64
-$NM -e $xopt $1 >/dev/null 2>&1 || xopt=""
-
-$NM -Bex $xopt $inputFiles \
+/usr/ccs/bin/nm -Bex -X32_64 $inputFiles \
| sed -e '/ [^BDT] /d' -e '/\./d' -e 's/.* [BDT] //' -e '/::/d' \
| sort | uniq >> $expFileName