[all-commits] [llvm/llvm-project] a6e6ab: [AIX] Fix Link Issue when `-fprofile-update=[atomi...

Qiongsi Wu via All-commits all-commits at lists.llvm.org
Wed Aug 30 16:21:41 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a6e6abd76cd31011f7685bda2c95ac6468df4f65
  Author: Qiongsi Wu <qwu at ibm.com>
  Date:   2023-08-30 (Wed, 30 Aug 2023)

  Changed paths:
    M clang/lib/Driver/ToolChains/AIX.cpp
    M clang/test/Driver/fprofile-update.c

  Log Message:
  [AIX] Fix Link Issue when `-fprofile-update=[atomic|prefer-atomic]` is in Effect

https://reviews.llvm.org/D157280 enabled `-fprofile-update` for `-fprofile-generate`, but omitted adding `-latomic` to the linker command on AIX. This omission causes linking to fail due to an undefined symbol. This patch fixes the link error.

Reviewed By: w2yehia

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

More information about the All-commits mailing list