RISC-V: Add -malign-data= option.
authorIlia Diachkov <ilia.diachkov@optimitech.com>
Tue, 23 Jul 2019 01:29:34 +0000 (01:29 +0000)
committerJim Wilson <wilson@gcc.gnu.org>
Tue, 23 Jul 2019 01:29:34 +0000 (18:29 -0700)
commitffbb9818b0efd04bff65c372e3e9444fae634363
tree76e6f330d40b40313cb182a14bd72177b0e8abe1
parent1d46067b347ab1814de3cdd7f620f5c8ca73232a
RISC-V: Add -malign-data= option.

gcc/
Ilia Diachkov  <ilia.diachkov@optimitech.com>
* config/riscv/riscv-opts.h (struct riscv_align_data): New.
* config/riscv/riscv.c (riscv_constant_alignment): Use
riscv_align_data_type.
* config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
(DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
(LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
* config/riscv/riscv.opt (malign-data): New.
* doc/invoke.texi (RISC-V Options): Document -malign-data=.

From-SVN: r273714
gcc/ChangeLog
gcc/config/riscv/riscv-opts.h
gcc/config/riscv/riscv.c
gcc/config/riscv/riscv.h
gcc/config/riscv/riscv.opt
gcc/doc/invoke.texi