[PATCH] D15524: [GCC] Attribute ifunc support in clang

Dmitry Polukhin via cfe-commits cfe-commits at lists.llvm.org
Tue Dec 15 06:32:14 PST 2015


DmitryPolukhin created this revision.
DmitryPolukhin added reviewers: aaron.ballman, rjmccall.
DmitryPolukhin added a subscriber: cfe-commits.

This patch add support for GCC __attribute__((ifunc("resolver"))) for targets that use ELF as object file format. In general ifunc is a special kind of function alias with type @gnu_indirect_function. LLVM patch will be sent separate.

http://reviews.llvm.org/D15524

Files:
  include/clang/Basic/Attr.td
  include/clang/Basic/AttrDocs.td
  include/clang/Basic/DiagnosticSemaKinds.td
  lib/AST/Decl.cpp
  lib/CodeGen/CodeGenModule.cpp
  lib/Sema/SemaDecl.cpp
  lib/Sema/SemaDeclAttr.cpp
  test/CodeGen/ifunc.c
  test/Sema/attr-ifunc.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D15524.42844.patch
Type: text/x-patch
Size: 10936 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20151215/7437e413/attachment.bin>


More information about the cfe-commits mailing list