]> git.ipfire.org Git - thirdparty/gcc.git/commit
gccrs: Add array length to the proc macro buffer
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Thu, 5 Oct 2023 10:28:38 +0000 (12:28 +0200)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 16 Jan 2024 18:09:34 +0000 (19:09 +0100)
commit068bdc3c6141833d533fd99234578c86658c0576
treeb7dad078048dc1b93bfbd01aa0de44b5fe7b80f9
parent4ad869fadaf93bb2aee92c40da98ed011449b45a
gccrs: Add array length to the proc macro buffer

The compiler cannot infer the array length from the type, we should
therefore hand it the information. The proc macro buffer missed that
information.

gcc/rust/ChangeLog:

* backend/rust-compile.cc (proc_macro_buffer): Update type builder with
array length information.
(proc_macro_array): Update type initializer with array length
information.

Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
gcc/rust/backend/rust-compile.cc