[all-commits] [llvm/llvm-project] 914714: [AIX] Detect `#pragma mc_func` (#99888)

Qiongsi Wu via All-commits all-commits at lists.llvm.org
Mon Jul 22 17:48:15 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9147147b5c191c22a740f8e596e62a6de1fc4f70
      https://github.com/llvm/llvm-project/commit/9147147b5c191c22a740f8e596e62a6de1fc4f70
  Author: Qiongsi Wu <274595+qiongsiwu at users.noreply.github.com>
  Date:   2024-07-22 (Mon, 22 Jul 2024)

  Changed paths:
    M clang/include/clang/Basic/DiagnosticParseKinds.td
    M clang/include/clang/Driver/Options.td
    M clang/include/clang/Lex/PreprocessorOptions.h
    M clang/include/clang/Parse/Parser.h
    M clang/lib/Driver/ToolChains/AIX.cpp
    M clang/lib/Parse/ParsePragma.cpp
    A clang/test/Preprocessor/pragma_mc_func.c

  Log Message:
  -----------
  [AIX] Detect `#pragma mc_func` (#99888)

`#pragma mc_func` is an IBM XL feature that should be replaced by inline
assembly. This PR adds an option `-ferr-pragma-mc-func-aix` to detect
uses of `#pragma mc_func` and reports an error if the option is in
effect. If `-fno-err-pragma-mc-func-aix` is in effect, `#pragma mc_func`
is ignored even if `-Werror=unknown-pragmas` is in effect.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list