From: Arthur Cohen <[email protected]>

Commit 2e6d90ba (Defer literal suffix validation) caused a regression on
aarch64 with an invalid error on one of our testcases.

Since the testcase only concerns the parsing of UTF-8 identifiers, work
around the regression by modifying the testcase itself.

We opened Rust-GCC#4575 to address the issue later on, but let's restore
the aarch64 build in the meantime.

gcc/testsuite/ChangeLog:

        * rust/compile/torture/utf8_identifiers.rs: Use a more classical
        looking float value to test our UTF-8 identifier.
---
This change was merged into the gccrs repository and is posted here for
upstream visibility and potential drive-by review, as requested by GCC
release managers.
Each commit email contains a link to its details on github from where you can
find the Pull-Request and associated discussions.


Commit on github: 
https://github.com/Rust-GCC/gccrs/commit/0b1424eca415ca70c719d3ca4251d5cedcb0982a

The commit has NOT been mentioned in any issue.

The commit has been mentioned in the following pull-request(s):
 - https://github.com/Rust-GCC/gccrs/pull/4576

 gcc/testsuite/rust/compile/torture/utf8_identifiers.rs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gcc/testsuite/rust/compile/torture/utf8_identifiers.rs 
b/gcc/testsuite/rust/compile/torture/utf8_identifiers.rs
index 87abf83d4..bbb0d1cd5 100644
--- a/gcc/testsuite/rust/compile/torture/utf8_identifiers.rs
+++ b/gcc/testsuite/rust/compile/torture/utf8_identifiers.rs
@@ -12,7 +12,7 @@ pub fn f<'かに>() {
     // { dg-warning "unused name" "" { target *-*-* } .-1 }
     let 게 = "";
     // { dg-warning "unused name" "" { target *-*-* } .-1 }
-    let سلطعون = 0.;
+    let سلطعون = 0.15;
     // { dg-warning "unused name" "" { target *-*-* } .-1 }
 
     let _: &'かに () = &crab;
@@ -21,5 +21,5 @@ pub fn f<'かに>() {
 pub fn g<'β, γ>() {}
 
 struct _S {
-    δ: i32
+    δ: i32,
 }

base-commit: 58e4887308341b0fc3f8e901880fdf611678a2fd
-- 
2.54.0

Reply via email to