[all-commits] [llvm/llvm-project] 7370b9: [Driver] Reject -march= for ppc
Fangrui Song via All-commits
all-commits at lists.llvm.org
Mon Mar 6 09:17:10 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 7370b9c8ea0049f103daae0126861ba4f6ff6f4a
https://github.com/llvm/llvm-project/commit/7370b9c8ea0049f103daae0126861ba4f6ff6f4a
Author: Fangrui Song <i at maskray.me>
Date: 2023-03-06 (Mon, 06 Mar 2023)
Changed paths:
M clang/lib/Driver/ToolChains/Arch/PPC.cpp
M clang/lib/Driver/ToolChains/Arch/PPC.h
M clang/lib/Driver/ToolChains/CommonArgs.cpp
M clang/test/Driver/ppc-cpus.c
Log Message:
-----------
[Driver] Reject -march= for ppc
Clang -march= for ppc triples currently leads to an
-Wunused-command-line-argument warning but GCC rejects -march=.
error: unrecognized command-line option ‘-march=xxx’
Let's reject -march= as well similar to the Sparc change D130273.
Close https://github.com/llvm/llvm-project/issues/57587
Reviewed By: #powerpc, nemanjai
Differential Revision: https://reviews.llvm.org/D145141
More information about the All-commits
mailing list