From: Arthur Cohen Date: Thu, 11 May 2023 08:19:56 +0000 (+0200) Subject: gccrs: Address invalid little-endian-only testcases X-Git-Tag: basepoints/gcc-15~2549 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8769b4900fd0a91cc5021a4f86679820b17d4c41;p=thirdparty%2Fgcc.git gccrs: Address invalid little-endian-only testcases gcc/testsuite/ChangeLog: * rust/compile/const-issue1440.rs: Remove LE conditional compilation. * rust/compile/torture/issue-1432.rs: Likewise. --- diff --git a/gcc/testsuite/rust/compile/const-issue1440.rs b/gcc/testsuite/rust/compile/const-issue1440.rs index 9ad76a96b2ad..2529a1c0fa84 100644 --- a/gcc/testsuite/rust/compile/const-issue1440.rs +++ b/gcc/testsuite/rust/compile/const-issue1440.rs @@ -40,7 +40,6 @@ macro_rules! impl_uint { } pub fn to_le(self) -> Self { - #[cfg(target_endian = "little")] { self } diff --git a/gcc/testsuite/rust/compile/torture/issue-1432.rs b/gcc/testsuite/rust/compile/torture/issue-1432.rs index 822ca41c5ad3..0269823fb6d5 100644 --- a/gcc/testsuite/rust/compile/torture/issue-1432.rs +++ b/gcc/testsuite/rust/compile/torture/issue-1432.rs @@ -44,7 +44,6 @@ macro_rules! impl_uint { } pub fn to_le(self) -> Self { - #[cfg(target_endian = "little")] { self }