HomePhabricator

Disable frame pointer elimination when using -pg

Description

Disable frame pointer elimination when using -pg

(Re-apply patch after bug fixing)

This diff makes sure that the driver does not pass
-fomit-frame-pointer or -momit-leaf-frame-pointer to
the frontend when -pg is used. Currently, clang gives
an error if -fomit-frame-pointer is used in combination
with -pg, but -momit-leaf-frame-pointer was forgotten.
Also, disable frame pointer elimination in the frontend
when -pg is set.

Patch by Stefan Kempf.

Details

Committed
davidxlNov 23 2015, 9:30 AM
Parents
rL253885: [PGO] Use common definition of raw magic and version
Branches
Unknown
Tags
Unknown