summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Malcolm <dmalcolm@redhat.com>2012-02-06 17:25:04 (GMT)
committerDavid Malcolm <dmalcolm@redhat.com>2012-02-06 17:25:04 (GMT)
commit96b315be0d2b082649f196e86502c175872506df (patch)
tree809f27f5bf8b3df6d5d5c8ba5542e636ce6ef973
parent4642a564e03c9e2c8114bca206205ad9c8fbc308 (diff)
downloadgcc-python-plugin-96b315be0d2b082649f196e86502c175872506df.zip
gcc-python-plugin-96b315be0d2b082649f196e86502c175872506df.tar.gz
gcc-python-plugin-96b315be0d2b082649f196e86502c175872506df.tar.xz
fixes for selftests on 32-bit
-rw-r--r--run-test-suite.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/run-test-suite.py b/run-test-suite.py
index 2bccd24..a68331a 100644
--- a/run-test-suite.py
+++ b/run-test-suite.py
@@ -113,6 +113,7 @@ class TestStream:
# (e.g. from "D.12021->fieldA" to "D.nnnnn->fieldA"):
line = re.sub('D.([0-9]+)', 'D.nnnnn', line)
line = re.sub('VarDecl\(([0-9]+)\)', 'VarDecl(nnnn)', line)
+ line = re.sub('ParmDecl\(([0-9]+)\)', 'ParmDecl(nnnn)', line)
line = re.sub('LabelDecl\(([0-9]+)\)', 'LabelDecl(nnnn)', line)
# Remove exact numbers from types
@@ -146,7 +147,9 @@ class TestStream:
# Avoid further 32-bit vs 64-bit differences due to int vs long
# overflow:
line = re.sub('0x7fffffffL', '0x7fffffff', line)
+ line = re.sub('0x7ffffffeL', '0x7ffffffe', line)
line = re.sub('0xffffffffL', '0xffffffff', line)
+ line = re.sub('0xfffffffeL', '0xfffffffe', line)
# GCC 4.7 tracks macro expansions, and this can change the column
# numbers in error reports: