Quuxplusone / LLVMBugzillaTest

0 stars 0 forks source link

[constmerge] Constant merging pass merges constants with external linkage #63

Closed Quuxplusone closed 14 years ago

Quuxplusone commented 20 years ago
Bugzilla Link PR64
Status RESOLVED FIXED
Importance P normal
Reported by Chris Lattner (clattner@nondot.org)
Reported on 2003-10-28 23:53:00 -0800
Last modified on 2010-02-22 12:50:22 -0800
Version 1.0
Hardware PC Linux
CC llvm-bugs@lists.llvm.org
Fixed by commit(s)
Attachments
Blocks
Blocked by
See also
The constant merging pass has no qualms about merging constants with external
linkage, which causes link errors later.  It should only merge constants away
that have internal linkage.

This is tested as:
test/Regression/Transforms/ConstantMerge/2003-10-28-MergeExternalConstants.ll

This causes undefined symbols in libstdc++, specifically
"std::ios_base::badbit".
Quuxplusone commented 20 years ago
This is now fixed:
http://mail.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20031027/008939.html