[LLVMbugs] [Bug 64] New: [constmerge] Constant merging pass merges constants with external linkage

bugzilla-daemon at zion.cs.uiuc.edu bugzilla-daemon at zion.cs.uiuc.edu
Tue Oct 28 21:53:00 PST 2003


http://llvm.cs.uiuc.edu/bugs/show_bug.cgi?id=64

           Summary: [constmerge] Constant merging pass merges constants with
                    external linkage
           Product: libraries
           Version: 1.0
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Interprocedural Optimizations
        AssignedTo: sabre at nondot.org
        ReportedBy: sabre at nondot.org


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



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.



More information about the llvm-bugs mailing list