Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
4c1730db
Commit
4c1730db
authored
Aug 01, 2012
by
Martin v. Löwis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #8847: Disable COMDAT folding in Windows PGO builds.
Analysis by Victor Stinner. Patch by Stefan Krah.
parent
06c5c6d6
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
1 deletion
+19
-1
Lib/test/test_list.py
Lib/test/test_list.py
+8
-0
Lib/test/test_tuple.py
Lib/test/test_tuple.py
+8
-0
Misc/NEWS
Misc/NEWS
+2
-0
PCbuild/pginstrument.vsprops
PCbuild/pginstrument.vsprops
+1
-1
No files found.
Lib/test/test_list.py
View file @
4c1730db
...
...
@@ -70,6 +70,14 @@ class ListTest(list_tests.CommonTest):
check
(
1000000
)
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
):
support
.
run_unittest
(
ListTest
)
...
...
Lib/test/test_tuple.py
View file @
4c1730db
...
...
@@ -164,6 +164,14 @@ class TupleTest(seq_tests.CommonTest):
check
(
10
)
# check our checking code
check
(
1000000
)
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
():
support
.
run_unittest
(
TupleTest
)
...
...
Misc/NEWS
View file @
4c1730db
...
...
@@ -425,6 +425,8 @@ Tests
Build
-----
- Issue #8847: Disable COMDAT folding in Windows PGO builds.
- Issue #14197: For OS X framework builds, ensure links to the shared
library are created with the proper ABI suffix.
...
...
PCbuild/pginstrument.vsprops
View file @
4c1730db
...
...
@@ -22,7 +22,7 @@
<Tool
Name=
"VCLinkerTool"
OptimizeReferences=
"2"
EnableCOMDATFolding=
"
2
"
EnableCOMDATFolding=
"
1
"
LinkTimeCodeGeneration=
"2"
ProfileGuidedDatabase=
"$(SolutionDir)$(PlatformName)-pgi\$(TargetName).pgd"
ImportLibrary=
"$(OutDirPGI)\$(TargetName).lib"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment