From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1650149-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 3382A1581C1 for <garchives@archives.gentoo.org>; Fri, 5 Jul 2024 20:50:17 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 63A942BC0B1; Fri, 5 Jul 2024 20:50:16 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 3ACED2BC0B1 for <gentoo-commits@lists.gentoo.org>; Fri, 5 Jul 2024 20:50:16 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 384C8343089 for <gentoo-commits@lists.gentoo.org>; Fri, 5 Jul 2024 20:50:15 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 8740ABC7 for <gentoo-commits@lists.gentoo.org>; Fri, 5 Jul 2024 20:50:13 +0000 (UTC) From: "Luca Barbato" <lu_zero@gentoo.org> To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Luca Barbato" <lu_zero@gentoo.org> Message-ID: <1720212549.2baeb8c8987f9214080ce2a8c94c0e93ee7af217.lu_zero@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/ X-VCS-Repository: repo/gentoo X-VCS-Files: eclass/flag-o-matic.eclass X-VCS-Directories: eclass/ X-VCS-Committer: lu_zero X-VCS-Committer-Name: Luca Barbato X-VCS-Revision: 2baeb8c8987f9214080ce2a8c94c0e93ee7af217 X-VCS-Branch: master Date: Fri, 5 Jul 2024 20:50:13 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: fc2518a1-ebc5-4dd0-aea5-076b01a8d95b X-Archives-Hash: 8cbc387a60ef2ed59c0bb116b27f2ec6 commit: 2baeb8c8987f9214080ce2a8c94c0e93ee7af217 Author: Luca Barbato <lu_zero <AT> gentoo <DOT> org> AuthorDate: Fri Jul 5 09:31:57 2024 +0000 Commit: Luca Barbato <lu_zero <AT> gentoo <DOT> org> CommitDate: Fri Jul 5 20:49:09 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2baeb8c8 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 <AT> gentoo.org> eclass/flag-o-matic.eclass | 4 ++++ 1 file changed, 4 insertions(+) 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