llvm-project/clang/test
Nick Desaulniers 8b9cb12081 [Driver] -pg -mfentry should respect target specific decisions for -mframe-pointer=all
Summary:
$ clang -O2 -pg -mfentry foo.c

was adding frame pointers to all functions. This was exposed via
compiling the Linux kernel for x86_64 with CONFIG_FUNCTION_TRACER
enabled.

-pg was unconditionally setting the equivalent of -fno-omit-frame-pointer,
regardless of the presence of -mfentry or optimization level.  After this
patch, frame pointers will only be omitted at -O0 or if
-fno-omit-frame-pointer is explicitly set for -pg -mfentry.

See also:
https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=3c5273a96ba8dbf98c40bc6d9d0a1587b4cfedb2;hp=c9d75a48c4ea63ab27ccdb40f993236289b243f2#patch2
(modification to ix86_frame_pointer_required())

Fixes: pr/44934

Reviewers: void, manojgupta, dberris, MaskRay, hfinkel

Reviewed By: MaskRay

Subscribers: cfe-commits, llozano, niravd, srhines

Tags: #clang

Differential Revision: https://reviews.llvm.org/D74698
2020-02-18 15:33:46 -08:00
..
ARCMT
AST [Concepts] Placeholder constraints and abbreviated templates 2020-01-23 19:39:43 +02:00
ASTMerge
Analysis Revert "[analyzer] Teach scan-build how to rebuild index.html without analyzing." 2020-02-18 09:48:29 +03:00
CXX [Concepts] Do not check constraints if not all template arguments have been deduced 2020-02-12 16:02:12 +02:00
ClangScanDeps [clang][clang-scan-deps] Aggregate the full dependency information. 2020-01-23 16:58:50 -08:00
CodeCompletion [clang][CodeComplete] Support for designated initializers 2020-01-28 16:34:15 +01:00
CodeGen [clang][XCOFF] Indicate that XCOFF does not support COMDATs 2020-02-18 16:10:11 -05:00
CodeGenCUDA [OpenCL][CUDA][HIP][SYCL] Add norecurse 2020-02-16 20:41:00 -05:00
CodeGenCXX Revert "Reland "[DebugInfo] Enable the debug entry values feature by default"" 2020-02-18 16:38:11 +01:00
CodeGenCoroutines Revert "[CodeGenModule] Assume dso_local for -fpic -fno-semantic-interposition" 2020-02-03 10:09:39 -08:00
CodeGenHIP Don't dump IR output from this test to stdout. 2020-01-16 19:19:45 -08:00
CodeGenObjC [ubsan] Omit return value check when return block is unreachable 2020-02-06 10:24:03 -08:00
CodeGenObjCXX [ubsan] Null-check and adjust TypeLoc before using it 2020-02-10 14:10:06 -08:00
CodeGenOpenCL [OpenCL][CUDA][HIP][SYCL] Add norecurse 2020-02-16 20:41:00 -05:00
CodeGenOpenCLCXX [OpenCL] Add ExtVectorElementExpr constant evaluation (PR42387) 2019-12-17 11:10:06 +00:00
Coverage
CoverageMapping
Driver [Driver] -pg -mfentry should respect target specific decisions for -mframe-pointer=all 2020-02-18 15:33:46 -08:00
FixIt [objc_direct] Small updates to help with adoption. 2020-02-16 16:32:41 -08:00
Format
Frontend [clang][test][NFC] Use more widely supported sanitizer for file dependency tests 2020-01-14 12:55:11 -08:00
Headers Revert "PR17164: Change clang's default behavior from -flax-vector-conversions=all to -flax-vector-conversions=integer." 2020-01-20 16:34:09 -08:00
Import Tighten up CHECK lines added in a9f10ebffa to work on ARM. 2019-12-05 18:35:08 -08:00
Index [OpenCL] Pretty print __private addr space 2019-12-27 13:42:07 +00:00
Integration
InterfaceStubs [clang][IFS][test] Temporary work around for in-process cc1 ASAN issues. 2020-01-21 22:56:20 -05:00
Layout
Lexer Detect source location overflow due includes 2020-01-24 23:56:47 +00:00
Misc Use getLocation() in "too few/too many arguments" diagnostic 2020-02-18 11:23:17 -05:00
Modules Fix a reentrance bug with deserializing ObjC type parameters. 2020-02-12 18:44:19 -05:00
OpenMP Revert "[CUDA][HIP][OpenMP] Emit deferred diagnostics by a post-parsing AST travese" 2020-02-18 14:45:34 -05:00
PCH Revert "[CodeGenModule] Assume dso_local for -fpic -fno-semantic-interposition" 2020-02-03 10:09:39 -08:00
Parser PR12350: Handle remaining cases permitted by CWG DR 244. 2020-02-07 18:40:41 -08:00
Preprocessor [AArch64] Add Cortex-A34 Support for clang and llvm 2020-02-18 14:56:16 +00:00
Profile
Refactor
Rewriter
Sema Use getLocation() in "too few/too many arguments" diagnostic 2020-02-18 11:23:17 -05:00
SemaCUDA Revert "[CUDA][HIP][OpenMP] Emit deferred diagnostics by a post-parsing AST travese" 2020-02-18 14:45:34 -05:00
SemaCXX PR44958: Allow member calls and typeid / dynamic_cast on mutable objects 2020-02-18 14:57:13 -08:00
SemaObjC [objc_direct] Small updates to help with adoption. 2020-02-16 16:32:41 -08:00
SemaObjCXX Clean up and slightly generalize implementation of composite pointer 2020-01-10 16:12:00 -08:00
SemaOpenCL [OpenCL] Restrict addr space conversions in nested pointers 2020-02-07 12:04:35 +00:00
SemaOpenCLCXX [OpenCL] Restrict addr space conversions in nested pointers 2020-02-07 12:04:35 +00:00
SemaSYCL
SemaTemplate PR44890: Inherit explicitly-specified template arguments into base class 2020-02-15 02:16:21 -08:00
TableGen
Templight
Tooling
Unit
VFS [VFS] More consistent support for Windows 2020-02-05 11:38:20 -08:00
clang-rename [clang-rename] Fix the failure rename test. 2020-02-11 10:07:00 +01:00
utils/update_cc_test_checks Move update_cc_test_checks.py tests to clang 2020-02-14 14:39:55 +00:00
.clang-format
CMakeLists.txt [Clang][Driver] Re-use the calling process instead of creating a new process for the cc1 invocation 2020-01-13 10:40:18 -05:00
TestRunner.sh
cxx-sections.data
lit.cfg.py
lit.site.cfg.py.in build: reduce CMake handling for zlib 2020-01-02 11:19:12 -08:00
make_test_dirs.pl