]> git.ipfire.org Git - thirdparty/gcc.git/commit
MIPS: Add -m(no-)strict-align option
authorYunQiang Su <syq@gcc.gnu.org>
Fri, 15 Mar 2024 06:33:58 +0000 (14:33 +0800)
committerYunQiang Su <syq@gcc.gnu.org>
Fri, 15 Mar 2024 06:47:36 +0000 (14:47 +0800)
commitacc38ff59976e972ba4b1e39f7653813a05de588
tree7cb73dfb4265bb3b766d799b67fdd527dbf420ea
parent81f3d963e05de8b17d4ccc7667ead9ed156193a4
MIPS: Add -m(no-)strict-align option

We support options -m(no-)unaligned-access 2 years ago, while
currently most of other ports prefer -m(no-)strict-align.
Let's support -m(no-)strict-align, and keep -m(no-)unaligned-access
as alias.

gcc
* config/mips/mips.opt: Support -mstrict-align, and use
TARGET_STRICT_ALIGN as the flag; keep -m(no-)unaligned-access
as alias.
* config/mips/mips.h: Use TARGET_STRICT_ALIGN.
* config/mips/mips.opt.urls: Regenerate.
* doc/invoke.texi: Document -m(no-)strict-algin for MIPSr6.
gcc/config/mips/mips.h
gcc/config/mips/mips.opt
gcc/config/mips/mips.opt.urls
gcc/doc/invoke.texi