]> git.ipfire.org Git - thirdparty/gcc.git/commit
LoongArch: add new configure option --with-strict-align-lib
authorYang Yujie <yangyujie@loongson.cn>
Mon, 28 Aug 2023 02:20:12 +0000 (10:20 +0800)
committerLulu Cheng <chenglulu@loongson.cn>
Tue, 5 Sep 2023 03:48:05 +0000 (11:48 +0800)
commit18e2e589eefc9ac96a75ff890cf883f754b163e4
tree5e2fc4d62335ecd148131915e358ba25fe0d8563
parentf095da2c5a452df7a7e184e0dcb5bb1538dd9086
LoongArch: add new configure option --with-strict-align-lib

LoongArch processors may not support memory accesses without natural
alignments.  Building libraries with -mstrict-align may help with
toolchain binary compatiblity and performance on these implementations
(e.g. Loongson 2K1000LA).

No significant performance degredation is observed on current mainstream
LoongArch processors when the option is enabled.

gcc/ChangeLog:

* config.gcc: use -mstrict-align for building libraries
if --with-strict-align-lib is given.
* doc/install.texi: likewise.
gcc/config.gcc
gcc/doc/install.texi