[all-commits] [llvm/llvm-project] 6f9c48: [MinGW] Reject explicit hidden visibility applied ...

Fangrui Song via All-commits all-commits at lists.llvm.org
Mon Sep 12 15:56:51 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6f9c4851ab7c729812bc8f48b19de3f84a64f6f0
      https://github.com/llvm/llvm-project/commit/6f9c4851ab7c729812bc8f48b19de3f84a64f6f0
  Author: Fangrui Song <i at maskray.me>
  Date:   2022-09-12 (Mon, 12 Sep 2022)

  Changed paths:
    M clang/include/clang/Basic/DiagnosticFrontendKinds.td
    M clang/lib/CodeGen/CodeGenModule.cpp
    M clang/test/CodeGenCXX/dllstorage-visibility.cpp

  Log Message:
  -----------
  [MinGW] Reject explicit hidden visibility applied to dllexport and hidden/protected applied to dllimport

Hidden visibility is incompatible with dllexport.
Hidden and protected visibilities are incompatible with dllimport.
(PlayStation uses dllexport protected.)

When an explicit visibility attribute applies on a dllexport/dllimport
declaration, report a Frontend error (Sema does not compute visibility).

Reviewed By: mstorsjo

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




More information about the All-commits mailing list