[gcc r14-7590] gccrs: Address invalid little-endian-only testcases
Arthur Cohen
cohenarthur@gcc.gnu.org
Tue Jan 16 17:43:15 GMT 2024
https://gcc.gnu.org/g:8769b4900fd0a91cc5021a4f86679820b17d4c41
commit r14-7590-g8769b4900fd0a91cc5021a4f86679820b17d4c41
Author: Arthur Cohen <arthur.cohen@embecosm.com>
Date: Thu May 11 10:19:56 2023 +0200
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:
---
gcc/testsuite/rust/compile/const-issue1440.rs | 1 -
gcc/testsuite/rust/compile/torture/issue-1432.rs | 1 -
2 files changed, 2 deletions(-)
diff --git a/gcc/testsuite/rust/compile/const-issue1440.rs b/gcc/testsuite/rust/compile/const-issue1440.rs
index 9ad76a96b2a..2529a1c0fa8 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 822ca41c5ad..0269823fb6d 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
}
More information about the Gcc-cvs
mailing list