diff options
author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2023-09-08 15:40:28 +0200 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-01-16 19:04:35 +0100 |
commit | f538c29d78646c060e391770b6e5e821b99c7685 (patch) | |
tree | 50136a9d37b06f382e161d5ca0b4ae1fde1c460e /gcc/rust/rust-gcc.cc | |
parent | 15648d5b8dc5a8cab1b11e14e5e5c178e32ed366 (diff) | |
download | gcc-f538c29d78646c060e391770b6e5e821b99c7685.zip gcc-f538c29d78646c060e391770b6e5e821b99c7685.tar.gz gcc-f538c29d78646c060e391770b6e5e821b99c7685.tar.bz2 |
gccrs: Shorten `make_unsigned_long_tree` code and remove `Backend::integer_constant_expression`
gcc/rust/ChangeLog:
* backend/rust-compile-intrinsic.cc: Simplify `make_unsigned_long_tree`
* rust-backend.h: Remove `integer_constant_expression`
* rust-gcc.cc: Remove `integer_constant_expression`
Diffstat (limited to 'gcc/rust/rust-gcc.cc')
-rw-r--r-- | gcc/rust/rust-gcc.cc | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/gcc/rust/rust-gcc.cc b/gcc/rust/rust-gcc.cc index 1aca71f..88bdca1 100644 --- a/gcc/rust/rust-gcc.cc +++ b/gcc/rust/rust-gcc.cc @@ -800,19 +800,6 @@ Backend::var_expression (Bvariable *var, location_t location) return var->get_tree (location); } -// Return a typed value as a constant integer. -// This function does not release the memory of @val - -tree -Backend::integer_constant_expression (tree t, mpz_t val) -{ - if (t == error_mark_node) - return error_mark_node; - - tree ret = wide_int_to_tree (t, wi::from_mpz (t, val, true)); - return ret; -} - // Return a typed value as a constant floating-point number. tree |