Skip to content

Commit 04907a6

Browse files
committed
gccrs: Fix scan-gimpl testcases on BE platforms.
gcc/testsuite/ChangeLog: * rust/compile/builtin_macro_eager1.rs: Switch to scan-assembler directive as the GIMPLE dump does not contain strings on BE. * rust/compile/builtin_macro_recurse2.rs: Likewise.
1 parent ffc7884 commit 04907a6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

gcc/testsuite/rust/compile/builtin_macro_eager1.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ macro_rules! b {
1515
}
1616

1717
fn main() {
18-
// { dg-final { scan-tree-dump-times {"test1canary"} 1 gimple } }
18+
// { dg-final { scan-assembler {"test1canary"} } }
1919
let _ = concat!(a!(), 1, b!());
2020
// should not error
2121
concat!(a!(), true, b!(),);

gcc/testsuite/rust/compile/builtin_macro_recurse2.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ macro_rules! a {
1616
}
1717

1818
fn main() {
19-
// { dg-final { scan-tree-dump-times {"abheyho"} 1 gimple } }
19+
// { dg-final { scan-assembler {"abheyho"} } }
2020
let _ = concat!("a", 'b', a!(), a!(b c d e f a!()), '\0');
2121
}

0 commit comments

Comments
 (0)