diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2024-07-05 11:31:57 +0200 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2024-07-05 22:49:09 +0200 |
commit | 2baeb8c8987f9214080ce2a8c94c0e93ee7af217 (patch) | |
tree | 34c0c82e6b8f1d09c085ecfc879ba40de6249848 /eclass | |
parent | dev-python/evdev: enable py3.13 (diff) | |
download | gentoo-2baeb8c8987f9214080ce2a8c94c0e93ee7af217.tar.gz gentoo-2baeb8c8987f9214080ce2a8c94c0e93ee7af217.tar.bz2 gentoo-2baeb8c8987f9214080ce2a8c94c0e93ee7af217.zip |
flag-o-matic.eclass: allow -mstrict-align and -mvector-strict-align
It is needed to make sure vector unaligned load/store aren't inserted
when the riscv cpu does not allow them.
See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115789
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/flag-o-matic.eclass | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/eclass/flag-o-matic.eclass b/eclass/flag-o-matic.eclass index ecac452aa0ef..c6b1ad80e12e 100644 --- a/eclass/flag-o-matic.eclass +++ b/eclass/flag-o-matic.eclass @@ -129,6 +129,10 @@ _setup-allowed-flags() { # needed for arm64 (and in particular SCS) -ffixed-x18 + # needed for riscv (to prevent unaligned vector access) + # See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115789 + -mstrict-align -mvector-strict-align + # gcc 4.5 -mno-fma4 -mno-movbe -mno-xop -mno-lwp # gcc 4.6 |