[all-commits] [llvm/llvm-project] aa5ee8: Honor -fuse-init-array when os is not specified o...
Kamlesh Kumar via All-commits
all-commits at lists.llvm.org
Mon Dec 16 15:21:27 PST 2019
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: aa5ee8f244441a8ea103a7e0ed8b6f3e74454516
https://github.com/llvm/llvm-project/commit/aa5ee8f244441a8ea103a7e0ed8b6f3e74454516
Author: Kamlesh Kumar <kamleshbhalui at gmail.com>
Date: 2019-12-16 (Mon, 16 Dec 2019)
Changed paths:
M llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
M llvm/lib/Target/AArch64/AArch64TargetObjectFile.cpp
M llvm/lib/Target/Hexagon/HexagonTargetObjectFile.cpp
M llvm/lib/Target/Lanai/LanaiTargetObjectFile.cpp
M llvm/lib/Target/Mips/MipsTargetObjectFile.cpp
M llvm/lib/Target/PowerPC/PPCTargetObjectFile.cpp
M llvm/lib/Target/RISCV/RISCVTargetObjectFile.cpp
M llvm/lib/Target/Sparc/SparcTargetObjectFile.cpp
M llvm/lib/Target/X86/X86TargetMachine.cpp
M llvm/lib/Target/X86/X86TargetObjectFile.cpp
M llvm/lib/Target/X86/X86TargetObjectFile.h
M llvm/test/CodeGen/X86/constructor.ll
M llvm/test/CodeGen/X86/init-priority.ll
Log Message:
-----------
Honor -fuse-init-array when os is not specified on x86
Currently -fuse-init-array option is not effective when target triple
does not specify os, on x86,x86_64.
i.e.
// -fuse-init-array is not honored.
$ clang -target i386 -fuse-init-array test.c -S
// -fuse-init-array is honored.
$ clang -target i386-linux -fuse-init-array test.c -S
This patch fixes first case.
And does cleanup.
Reviewers: rnk, craig.topper, fhahn, echristo
Reviewed By: rnk
Differential Revision: https://reviews.llvm.org/D71360
More information about the All-commits
mailing list