aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorArthur Cohen <arthur.cohen@embecosm.com>2022-05-18 09:43:04 +0200
committerArthur Cohen <arthur.cohen@embecosm.com>2022-05-18 09:43:04 +0200
commit6c0be4876868d4afcff4acc507cf136abd066bb0 (patch)
tree0a0935370c481ce4aeb38def7603d2db201991ce /gcc
parent8cad07cfd2244ad9a40027a4306b81b4553a4797 (diff)
downloadgcc-6c0be4876868d4afcff4acc507cf136abd066bb0.zip
gcc-6c0be4876868d4afcff4acc507cf136abd066bb0.tar.gz
gcc-6c0be4876868d4afcff4acc507cf136abd066bb0.tar.bz2
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.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/rust/compile/macro-issue1233.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/testsuite/rust/compile/macro-issue1233.rs b/gcc/testsuite/rust/compile/macro-issue1233.rs
index d762bb7..7fab787 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
}