]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gccrs: Address invalid little-endian-only testcases
authorArthur Cohen <arthur.cohen@embecosm.com>
Thu, 11 May 2023 08:19:56 +0000 (10:19 +0200)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 16 Jan 2024 17:37:18 +0000 (18:37 +0100)
gcc/testsuite/ChangeLog:

* rust/compile/const-issue1440.rs: Remove LE conditional compilation.
* rust/compile/torture/issue-1432.rs: Likewise.

gcc/testsuite/rust/compile/const-issue1440.rs
gcc/testsuite/rust/compile/torture/issue-1432.rs

index 9ad76a96b2adf470a7ac2a3ef0737b16e6354f6f..2529a1c0fa8497b7903a1ebf0c67a6ce05172186 100644 (file)
@@ -40,7 +40,6 @@ macro_rules! impl_uint {
                 }
 
                 pub fn to_le(self) -> Self {
-                    #[cfg(target_endian = "little")]
                     {
                         self
                     }
index 822ca41c5ad3c0da48277e6cb2880234f384cce9..0269823fb6d59e7fcafd6ee9950f739cb755c674 100644 (file)
@@ -44,7 +44,6 @@ macro_rules! impl_uint {
                 }
 
                 pub fn to_le(self) -> Self {
-                    #[cfg(target_endian = "little")]
                     {
                         self
                     }