[all-commits] [llvm/llvm-project] 9d39df: [Clang][Sema] Capturing section type conflicts bet...

Lucas Duarte Prates via All-commits all-commits at lists.llvm.org
Thu May 7 03:55:05 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 9d39df03a984ff4bed7d441a110d44976a8ab21b
      https://github.com/llvm/llvm-project/commit/9d39df03a984ff4bed7d441a110d44976a8ab21b
  Author: Lucas Prates <lucas.prates at arm.com>
  Date:   2020-05-07 (Thu, 07 May 2020)

  Changed paths:
    M clang/include/clang/AST/ASTContext.h
    M clang/lib/AST/ASTContext.cpp
    M clang/lib/Sema/SemaAttr.cpp
    M clang/lib/Sema/SemaDecl.cpp
    M clang/test/Sema/pragma-clang-section.c

  Log Message:
  -----------
  [Clang][Sema] Capturing section type conflicts between #pragma clang section and section attributes

Summary:
Conflicting types for the same section name defined in clang section
pragmas and GNU-style section attributes were not properly captured by
Clang's Sema. The lack of diagnostics was caused by the fact the section
specification coming from attributes was handled by Sema as implicit,
even though explicitly defined by the user.

This patch enables the diagnostics for section type conflicts between
those specifications by making sure sections defined in section
attributes are correctly handled as explicit.

Reviewers: hans, rnk, javed.absar

Reviewed By: rnk

Subscribers: cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D78573




More information about the All-commits mailing list