Skip to content

[llvmgcc] C front-end does not compile "extern inline" into linkonce #554

@lattner

Description

@lattner
Bugzilla Link 182
Resolution FIXED
Resolved on Mar 06, 2010 14:00
Version 1.0
OS All
Blocks llvm/llvm-bugzilla-archive#202

Extended Description

llvmgcc currently compiles "extern inline" functions into "weak" linkage,
instead of linkonce linkage, preventing the optimizer from deleting the bodies
of unreferenced functions.

Testcase here: test/Regression/CFrontend/2003-12-14-ExternInlineSupport.c.tr

Another testcase:
--- test.c
#include <gmp.h>

$ llvmgcc test.c -c -o - | llvm-dis

-Chris

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