From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1643) id 5575F3810AC0; Wed, 8 Jun 2022 12:47:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5575F3810AC0 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Thomas Schwinge To: gcc-cvs@gcc.gnu.org Subject: [gcc/devel/rust/master] issue #1233: Do not rely on the endianness for testing X-Act-Checkin: gcc X-Git-Author: Arthur Cohen X-Git-Refname: refs/heads/devel/rust/master X-Git-Oldrev: 8cad07cfd2244ad9a40027a4306b81b4553a4797 X-Git-Newrev: 6c0be4876868d4afcff4acc507cf136abd066bb0 Message-Id: <20220608124747.5575F3810AC0@sourceware.org> Date: Wed, 8 Jun 2022 12:47:47 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Jun 2022 12:47:47 -0000 https://gcc.gnu.org/g:6c0be4876868d4afcff4acc507cf136abd066bb0 commit 6c0be4876868d4afcff4acc507cf136abd066bb0 Author: Arthur Cohen Date: Wed May 18 09:43:04 2022 +0200 issue #1233: Do not rely on the endianness for testing This testcase uncovered a very interesting bug requiring a refactor of our `AST::Block` class (#1253), but should still be fixed/adapted in the meantime so that the BE builds on our buildbot do not fail. Diff: --- gcc/testsuite/rust/compile/macro-issue1233.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gcc/testsuite/rust/compile/macro-issue1233.rs b/gcc/testsuite/rust/compile/macro-issue1233.rs index d762bb7fb9e..7fab787b9e8 100644 --- a/gcc/testsuite/rust/compile/macro-issue1233.rs +++ b/gcc/testsuite/rust/compile/macro-issue1233.rs @@ -1,15 +1,15 @@ -// { dg-additional-options "-w" } +// { dg-additional-options "-frust-cfg=A -w" } macro_rules! impl_uint { ($($ty:ident = $lang:literal),*) => { $( impl $ty { pub fn to_le(self) -> Self { - #[cfg(not(target_endian = "little"))] + #[cfg(not(A))] { self } - #[cfg(target_endian = "little")] + #[cfg(A)] { self }