[all-commits] [llvm/llvm-project] f50066: Detect section type conflicts between functions an...

tmatheson-arm via All-commits all-commits at lists.llvm.org
Thu Dec 17 08:44:17 PST 2020


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f50066292477fb26806336e5604615d0eddde399
      https://github.com/llvm/llvm-project/commit/f50066292477fb26806336e5604615d0eddde399
  Author: Tomas Matheson <Tomas.Matheson at arm.com>
  Date:   2020-12-17 (Thu, 17 Dec 2020)

  Changed paths:
    M clang/include/clang/AST/ASTContext.h
    M clang/include/clang/Sema/Sema.h
    M clang/lib/Sema/SemaAttr.cpp
    M clang/lib/Sema/SemaDeclAttr.cpp
    M clang/test/CodeGen/attributes.c
    M clang/test/Sema/attr-section.c
    M clang/test/SemaCXX/attr-section.cpp
    M clang/test/SemaObjC/method-attributes.m

  Log Message:
  -----------
  Detect section type conflicts between functions and variables

If two variables are declared with __attribute__((section(name))) and
the implicit section types (e.g. read only vs writeable) conflict, an
error is raised. Extend this mechanism so that an error is raised if the
section type implied by a function's __attribute__((section)) conflicts
with that of another variable.




More information about the All-commits mailing list