Skip to content

llvm-g++ does not mangle method names that match stdlib function names #648

@llvmbot

Description

@llvmbot
Bugzilla Link 276
Resolution FIXED
Resolved on Feb 22, 2010 12:45
Version trunk
OS All
Attachments C++ code demonstrating the problem, Incorrect LLVM assembly output from llvm-g++
Reporter LLVM Bugzilla Contributor

Extended Description

llvm-g++ does not properly mangle methods that have a name matching one of the C
library functions that might get turned into an LLVM intrinsic.

The attached C code and output LLVM code shows that typical methods get mangled.
However, methods named "strlen" or "memset" do not get mangled properly.

This causes problems with LLVM linking C++ programs, as these methods will get
their types (incorrectly) merged with the function types from the standard C
library.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions