llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
25.63k stars 10.44k forks source link

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

Closed lattner closed 14 years ago

lattner commented 20 years ago
Bugzilla Link 64
Resolution FIXED
Resolved on Feb 22, 2010 12:50
Version 1.0
OS Linux

Extended Description

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".

lattner commented 20 years ago

This is now fixed: http://mail.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20031027/008939.html

lattner commented 20 years ago

assigned to @lattner