rust/compiler/rustc_target/src
Jeff Muizelaar aab854596f Turn off frame pointer elimination on all Apple platforms.
This ends up disabling frame pointer elimination on aarch64_apple_darwin
which matches what clang does by default along with the
aarch64_apple_ios and x86_64_apple_darwin targets.

Further, the Apple docs "Writing ARM64 Code for Apple Platforms" has a section
called "Respect the Purpose of Specific CPU Registers" which
specifically calls out the frame pointer register (x29):

   The frame pointer register (x29) must always address a valid frame
   record. Some functions — such as leaf functions or tail calls — may
   opt not to create an entry in this list As a result, stack traces
   are always meaningful, even without debug information.

Other platforms are updated to not override the default.
2021-06-02 13:49:29 -04:00
..
abi add Align::ONE; add methods to access alloc.extra 2021-05-18 19:33:55 +02:00
asm Auto merge of #85312 - ehuss:macro_use-unused-attr, r=petrochenkov 2021-05-16 20:19:45 +00:00
spec Turn off frame pointer elimination on all Apple platforms. 2021-06-02 13:49:29 -04:00
lib.rs Adjust target search algorithm for rustlib path 2021-05-10 19:15:19 +03:00