diff options
author | Rainer Orth <ro@gcc.gnu.org> | 2022-06-24 08:50:05 +0200 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2022-06-24 08:50:27 +0200 |
commit | c8030bb6b147eefa329009441bf956b5ce871aaa (patch) | |
tree | d75c06986832eaceb54c13d65e4c3fa3c89532c6 | |
parent | c0f11672d760513256997f325da678016d13f677 (diff) | |
download | gcc-c8030bb6b147eefa329009441bf956b5ce871aaa.zip gcc-c8030bb6b147eefa329009441bf956b5ce871aaa.tar.gz gcc-c8030bb6b147eefa329009441bf956b5ce871aaa.tar.bz2 |
Fix remaining misuses of format specifiers on 32-bit targets
Unfortunately, another instance of this issue sneaked in after my original patch.
Fixed by the attached patch, which makes this work again on i386-pc-solaris2.11
-rw-r--r-- | gcc/rust/backend/rust-compile-intrinsic.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/rust/backend/rust-compile-intrinsic.cc b/gcc/rust/backend/rust-compile-intrinsic.cc index e93480d..57a952f 100644 --- a/gcc/rust/backend/rust-compile-intrinsic.cc +++ b/gcc/rust/backend/rust-compile-intrinsic.cc @@ -526,10 +526,10 @@ transmute_intrinsic_handler (Context *ctx, TyTy::BaseType *fntype_tyty) "dependently-sized types"); rust_inform (fntype->get_ident ().locus, "source type: %qs (%lu bits)", fntype->get_params ().at (0).second->as_string ().c_str (), - source_size); + (unsigned long) source_size); rust_inform (fntype->get_ident ().locus, "target type: %qs (%lu bits)", fntype->get_return_type ()->as_string ().c_str (), - target_size); + (unsigned long) target_size); } tree enclosing_scope = NULL_TREE; |