r255221 - in /branches/gcc-7-branch/gcc: Change...

wilson@gcc.gnu.org wilson@gcc.gnu.org
Wed Nov 29 00:00:00 GMT 2017


Author: wilson
Date: Wed Nov 29 00:00:01 2017
New Revision: 255221

URL: https://gcc.gnu.org/viewcvs?rev=255221&root=gcc&view=rev
Log:
Add riscv -mstrict-align option.

	gcc/
	Backport from mainline
	2017-11-04  Andrew Waterman  <andrew@sifive.com>

	* config/riscv/riscv.c (riscv_option_override): Conditionally set
	TARGET_STRICT_ALIGN based upon -mtune argument.

	Backport from mainline
	2017-05-04  Andrew Waterman  <andrew@sifive.com>

	* config/riscv/riscv.opt (mstrict-align): New option.
	* config/riscv/riscv.h (STRICT_ALIGNMENT): Use it.  Update comment.
	(SLOW_UNALIGNED_ACCESS): Define.
	(riscv_slow_unaligned_access): Declare.
	* config/riscv/riscv.c (riscv_tune_info): Add slow_unaligned_access
	field.
	(riscv_slow_unaligned_access): New variable.
	(rocket_tune_info): Set slow_unaligned_access to true.
	(optimize_size_tune_info): Set slow_unaligned_access to false.
	(riscv_cpu_info_table): Add entry for optimize_size_tune_info.
	(riscv_valid_lo_sum_p): Use TARGET_STRICT_ALIGN.
	(riscv_option_override): Set riscv_slow_unaligned_access.
	* doc/invoke.texi: Add -mstrict-align to RISC-V.


Modified:
    branches/gcc-7-branch/gcc/ChangeLog
    branches/gcc-7-branch/gcc/config/riscv/riscv.c
    branches/gcc-7-branch/gcc/config/riscv/riscv.h
    branches/gcc-7-branch/gcc/config/riscv/riscv.opt
    branches/gcc-7-branch/gcc/doc/invoke.texi



More information about the Gcc-cvs mailing list