[all-commits] [llvm/llvm-project] 282da8: [XCOFF][AIX] Issue an error when specifying an ali...

stephenpeckham via All-commits all-commits at lists.llvm.org
Thu Aug 31 08:44:30 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 282da837565fcf8598a81b5f3b34bc25705917d3
  Author: Stephen Peckham <speckham at us.ibm.com>
  Date:   2023-08-31 (Thu, 31 Aug 2023)

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

  Log Message:
  [XCOFF][AIX] Issue an error when specifying an alias for a common symbol


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.

Reviewed by: hubert.reinterpretcast, DiggerLin

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

More information about the All-commits mailing list