]> gcc.gnu.org Git - gcc.git/commit
rust_debug: Cast size_t values to unsigned long before printing.
authorArthur Cohen <arthur.cohen@embecosm.com>
Wed, 17 Jan 2024 13:15:27 +0000 (14:15 +0100)
committerArthur Cohen <arthur.cohen@embecosm.com>
Thu, 18 Jan 2024 08:54:31 +0000 (09:54 +0100)
commit2341df1cb9b3681bfefe29207887b2b3dc271a95
tree7e47fe2a3ceb0ed9f694e515d7ac7cc8e547b6a0
parent484f48f03cf9a382b3bcf4dadac09c4ee59c2ddf
rust_debug: Cast size_t values to unsigned long before printing.

Using %lu to format size_t values breaks 32 bit targets, and %zu is not
supported by one of the hosts GCC aims to support - HPUX

gcc/rust/ChangeLog:

* backend/rust-compile-base.cc (HIRCompileBase::resolve_method_address):
Cast size_t value to unsigned long.
* expand/rust-proc-macro.cc (load_macros): Likewise.
* typecheck/rust-hir-type-check-expr.cc (TypeCheckExpr::visit): Likewise.
gcc/rust/backend/rust-compile-base.cc
gcc/rust/expand/rust-proc-macro.cc
gcc/rust/typecheck/rust-hir-type-check-expr.cc
This page took 0.062892 seconds and 6 git commands to generate.