[PATCH] D158739: AIX: Issue an error when specifying an alias for a common symbol

Stephen Peckham via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 24 07:39:29 PDT 2023


stephenpeckham created this revision.
stephenpeckham added reviewers: hubert.reinterpretcast, DiggerLin, jhenderson.
Herald added subscribers: jeroen.dobbelaere, kbarton, hiraditya, nemanjai.
Herald added a project: All.
stephenpeckham requested review of this revision.
Herald added projects: clang, LLVM.
Herald added subscribers: llvm-commits, cfe-commits.

There is no support in XCOFF for labels on common symbols.  Therefore, an alias for a common symbol is not supported.  Issue an error in the front end when an aliasee is a common symbol.  Issue a similar error in the back end in case an IR specifies an alias for a common symbol.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D158739

Files:
  clang/include/clang/Basic/DiagnosticFrontendKinds.td
  clang/lib/CodeGen/CodeGenModule.cpp
  clang/test/CodeGen/aix-common.c
  llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp
  llvm/test/CodeGen/PowerPC/aix-common.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D158739.553125.patch
Type: text/x-patch
Size: 4748 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230824/fd706156/attachment.bin>


More information about the cfe-commits mailing list