[PATCH] D13925: Implement __attribute__((internal_linkage))

David Majnemer via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 27 13:51:37 PDT 2015


majnemer added a comment.

No diagnostic is issued for the following C test case:

  int x __attribute__((internal_linkage));
  int x __attribute__((common));
  int *f() { return &x; }


================
Comment at: include/clang/Basic/Attr.td:2112
@@ +2111,3 @@
+
+def InternalLinkage : InheritableAttr {
+  let Spellings = [GCC<"internal_linkage">];
----------------
Why doesn't this use `Subjects` ?


Repository:
  rL LLVM

http://reviews.llvm.org/D13925





More information about the cfe-commits mailing list