mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
Issue #8847: Merge with 3.2
This commit is contained in:
commit
a562ed012d
4 changed files with 19 additions and 1 deletions
|
@ -98,6 +98,14 @@ class ListTest(list_tests.CommonTest):
|
||||||
d = pickle.dumps(it)
|
d = pickle.dumps(it)
|
||||||
self.assertEqual(self.type2test(it), self.type2test(reversed(data))[1:])
|
self.assertEqual(self.type2test(it), self.type2test(reversed(data))[1:])
|
||||||
|
|
||||||
|
def test_no_comdat_folding(self):
|
||||||
|
# Issue 8847: In the PGO build, the MSVC linker's COMDAT folding
|
||||||
|
# optimization causes failures in code that relies on distinct
|
||||||
|
# function addresses.
|
||||||
|
class L(list): pass
|
||||||
|
with self.assertRaises(TypeError):
|
||||||
|
(3,) + L([1,2])
|
||||||
|
|
||||||
def test_main(verbose=None):
|
def test_main(verbose=None):
|
||||||
support.run_unittest(ListTest)
|
support.run_unittest(ListTest)
|
||||||
|
|
||||||
|
|
|
@ -193,6 +193,14 @@ class TupleTest(seq_tests.CommonTest):
|
||||||
d = pickle.dumps(it)
|
d = pickle.dumps(it)
|
||||||
self.assertEqual(self.type2test(it), self.type2test(reversed(data))[1:])
|
self.assertEqual(self.type2test(it), self.type2test(reversed(data))[1:])
|
||||||
|
|
||||||
|
def test_no_comdat_folding(self):
|
||||||
|
# Issue 8847: In the PGO build, the MSVC linker's COMDAT folding
|
||||||
|
# optimization causes failures in code that relies on distinct
|
||||||
|
# function addresses.
|
||||||
|
class T(tuple): pass
|
||||||
|
with self.assertRaises(TypeError):
|
||||||
|
[3,] + T((1,2))
|
||||||
|
|
||||||
def test_main():
|
def test_main():
|
||||||
support.run_unittest(TupleTest)
|
support.run_unittest(TupleTest)
|
||||||
|
|
||||||
|
|
|
@ -276,6 +276,8 @@ Tests
|
||||||
Build
|
Build
|
||||||
-----
|
-----
|
||||||
|
|
||||||
|
- Issue #8847: Disable COMDAT folding in Windows PGO builds.
|
||||||
|
|
||||||
- Issue #14018: Fix OS X Tcl/Tk framework checking when using OS X SDKs.
|
- Issue #14018: Fix OS X Tcl/Tk framework checking when using OS X SDKs.
|
||||||
|
|
||||||
- Issue #15431: Add _freeze_importlib project to regenerate importlib.h
|
- Issue #15431: Add _freeze_importlib project to regenerate importlib.h
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCLinkerTool"
|
Name="VCLinkerTool"
|
||||||
OptimizeReferences="2"
|
OptimizeReferences="2"
|
||||||
EnableCOMDATFolding="2"
|
EnableCOMDATFolding="1"
|
||||||
LinkTimeCodeGeneration="2"
|
LinkTimeCodeGeneration="2"
|
||||||
ProfileGuidedDatabase="$(SolutionDir)$(PlatformName)-pgi\$(TargetName).pgd"
|
ProfileGuidedDatabase="$(SolutionDir)$(PlatformName)-pgi\$(TargetName).pgd"
|
||||||
ImportLibrary="$(OutDirPGI)\$(TargetName).lib"
|
ImportLibrary="$(OutDirPGI)\$(TargetName).lib"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue