[all-commits] [llvm/llvm-project] 9f0725: [Driver] -p: change from unused warning to error f...

Fangrui Song via All-commits all-commits at lists.llvm.org
Fri Dec 2 10:58:01 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9f07256a51924feabf151b5f5fbbab16af2a76c5
      https://github.com/llvm/llvm-project/commit/9f07256a51924feabf151b5f5fbbab16af2a76c5
  Author: Fangrui Song <i at maskray.me>
  Date:   2022-12-02 (Fri, 02 Dec 2022)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/lib/Driver/ToolChains/Clang.cpp
    A clang/test/Driver/p.c

  Log Message:
  -----------
  [Driver] -p: change from unused warning to error for most targets

AIX and OpenBSD seem to use -p. For most targets (at least FreeBSD and Linux),
-p is legacy (GCC freebsd has a warning). We don't want the uses to grow, so
making -p an alias for -pg is not recommended. I think the uses are small.

Reviewed By: mgorny

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




More information about the All-commits mailing list