[all-commits] [llvm/llvm-project] 2e9df8: [compiler-rt][builtins] Add compiler flags to catc...
Akira Hatanaka via All-commits
all-commits at lists.llvm.org
Fri Aug 26 08:37:46 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 2e9df860468425645dcd1b241c5dbf76c072e314
https://github.com/llvm/llvm-project/commit/2e9df860468425645dcd1b241c5dbf76c072e314
Author: Akira Hatanaka <ahatanaka at apple.com>
Date: 2022-08-26 (Fri, 26 Aug 2022)
Changed paths:
M compiler-rt/cmake/Modules/CompilerRTDarwinUtils.cmake
M compiler-rt/cmake/Modules/CompilerRTUtils.cmake
M compiler-rt/cmake/config-ix.cmake
M compiler-rt/lib/builtins/CMakeLists.txt
M compiler-rt/lib/builtins/eprintf.c
M compiler-rt/lib/profile/InstrProfiling.c
M compiler-rt/lib/profile/InstrProfilingWriter.c
Log Message:
-----------
[compiler-rt][builtins] Add compiler flags to catch potential errors
that can lead to security vulnerabilities
Also, fix a few places that were causing -Wshadow and
-Wformat-nonliteral warnings to be emitted.
This reapplies the patch that was reverted in caaafe4ae250 because it
broke Fuchsia builders.
I reverted the changes I made to InstrProfData.inc and instead renamed
the variables in InstrProfilingWriter.c. Also fixed a bug in function
add_security_warnings that was causing it to pass -Wformat-nonliteral
when the compiler doesn't support it.
More information about the All-commits
mailing list