gnu/gcc/3098b7e5bc0d085365f87a3b07c2910f70d4304c gccrs: Fix intrinsic error location
When an intrisic is used with an incorrect type, prin the location of
the call site, not the declaration.
Fixes Rust-GCC/gccrs#4465.
gcc/rust/ChangeLog:
* backend/rust-intrinsic-handlers.cc
(check_for_basic_integer_type): Fixed typo.
(build_atomic_builtin_name): Update message.
(unchecked_op, atomic_store, ctlz_handler)
(cttz_handler, bswap_handler): Use call location.
gcc/testsuite/ChangeLog:
* rust/compile/bswap.rs: Update error location.
* rust/compile/ctlz.rs: Likewise.
* rust/compile/ctlz_nonzero.rs: Likewise.
* rust/compile/cttz.rs: Likewise.
* rust/compile/cttz_nonzero.rs: Likewise.
* rust/compile/torture/intrinsics-5.rs: Likewise.
* rust/compile/torture/intrinsics-7.rs: Likewise.
Signed-off-by: Jean-Christian CÎRSTEA <jean-christian.cirstea@tuta.com>
8 files changed