public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/rust/master] issue #1233: Do not rely on the endianness for testing
@ 2022-06-08 12:47 Thomas Schwinge
0 siblings, 0 replies; only message in thread
From: Thomas Schwinge @ 2022-06-08 12:47 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:6c0be4876868d4afcff4acc507cf136abd066bb0
commit 6c0be4876868d4afcff4acc507cf136abd066bb0
Author: Arthur Cohen <arthur.cohen@embecosm.com>
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
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-06-08 12:47 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-08 12:47 [gcc/devel/rust/master] issue #1233: Do not rely on the endianness for testing Thomas Schwinge
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).