RISC-V: Add -mpreferred-stack-boundary option.
authorAndrew Waterman <andrew@sifive.com>
Tue, 23 Jan 2018 23:06:48 +0000 (23:06 +0000)
committerJim Wilson <wilson@gcc.gnu.org>
Tue, 23 Jan 2018 23:06:48 +0000 (15:06 -0800)
commit0ce42fe12b8e909f30bd57ab24e739d7d6218650
treec81447dc4719ae395b048f87780595ce6d4ccd2b
parent0889f16859b68006ddc5dd4d9658b2c6fb93083c
RISC-V: Add -mpreferred-stack-boundary option.

2018-01-23  Andrew Waterman  <andrew@sifive.com>
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.

Co-Authored-By: Jim Wilson <jimw@sifive.com>
From-SVN: r257005
gcc/ChangeLog
gcc/config/riscv/riscv.c
gcc/config/riscv/riscv.h
gcc/config/riscv/riscv.opt
gcc/doc/invoke.texi