with '-mframe-pointer' After D56351 and D64294, frame pointer handling is migrated to tri-state (all, non-leaf, none) in clang driver and on the function attribute. This patch makes the frame pointer handling cc1 option tri-state. Reviewers: chandlerc, rnk, t.p.northover, MaskRay Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D56353 llvm-svn: 366645
17 lines
494 B
C
17 lines
494 B
C
// REQUIRES: x86-registered-target
|
|
// RUN: %clang_cc1 -triple x86_64-unknown-unknown -O3 -pg -S -o - %s | \
|
|
// RUN: FileCheck %s
|
|
// RUN: %clang_cc1 -triple x86_64-unknown-unknown -O3 -mframe-pointer=all -pg -S -o - %s | \
|
|
// RUN: FileCheck %s
|
|
// RUN: %clang_cc1 -triple x86_64-unknown-unknown -O3 -mframe-pointer=non-leaf -pg -S -o - %s | \
|
|
// RUN: FileCheck %s
|
|
|
|
// Test that the frame pointer is kept when compiling with
|
|
// profiling.
|
|
|
|
//CHECK: pushq %rbp
|
|
int main(void)
|
|
{
|
|
return 0;
|
|
}
|