]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #61675 - fintelia:riscv-frame-pointer, r=nagisa
authorMazdak Farrokhzad <twingoow@gmail.com>
Wed, 12 Jun 2019 23:49:29 +0000 (01:49 +0200)
committerGitHub <noreply@github.com>
Wed, 12 Jun 2019 23:49:29 +0000 (01:49 +0200)
Include frame pointer for bare metal RISC-V targets

This changes the default setting to enable the use of the frame pointer register when targeting RISC-V. On that architecture there is a dedicated frame pointer register which LLVM would otherwise never use so there is no increase in register pressure. Further, since these are bare metal targets, getting backtraces without the frame pointer is considerably more difficult (you can't just ask the OS to load the ELF executable and parse DWARF symbols). It is true that this setting can also be changed with the `-C force-frame-pointers` flag but that won't impact the compilation of the standard library, meaning that backtraces from, say, a panic handler would be useless.


Trivial merge