RISC-V: Add -mpreferred-stack-boundary option

Programming / Compilers / GCC - wilson [138bc75d-0d04-0410-961f-82ee72b054a4] - 23 January 2018 23:06 EST

2018-01-23 Andrew Waterman gcc/
- config/riscv/riscv.c (riscv_stack_boundary): New. (riscv_option_override): Set riscv_stack_boundary. Handle riscv_preferred_stack_boundary_arg.
- config/riscv/riscv.h (MIN_STACK_BOUNDARY, ABI_STACK_BOUNDARY): New. (BIGGEST_ALIGNMENT): Set to STACK_BOUNDARY. (STACK_BOUNDARY): Set to riscv_stack_boundary. (RISCV_STACK_ALIGN): Use STACK_BOUNDARY.
- config/riscv/riscv.opt (mpreferred-stack-boundary): New.
- doc/invoke.tex (RISC-V Options): Add -mpreferred-stack-boundary.

2cfaa609b02 RISC-V: Add -mpreferred-stack-boundary option.
gcc/ChangeLog | 13 +++++++++++++
gcc/config/riscv/riscv.c | 17 +++++++++++++++++
gcc/config/riscv/riscv.h | 17 ++++++++++++-----
gcc/config/riscv/riscv.opt | 4 ++++
gcc/doc/invoke.texi | 11 +++++++++++
5 files changed, 57 insertions(+), 5 deletions(-)

Upstream: gcc.gnu.org


  • Share