aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/misc.c
diff options
context:
space:
mode:
authorJanne Blomqvist <jb@gcc.gnu.org>2017-01-13 21:53:16 +0200
committerJanne Blomqvist <jb@gcc.gnu.org>2017-01-13 21:53:16 +0200
commitc1e9bbcc49c1b9f169c5911f3871f5df109bff9b (patch)
treebf815e2471d2b7f7e44d76a31e98cc1d05e07b34 /gcc/fortran/misc.c
parentbe4aa83d6ff4720fffd2c9f62c6e3082ece1937f (diff)
downloadgcc-c1e9bbcc49c1b9f169c5911f3871f5df109bff9b.zip
gcc-c1e9bbcc49c1b9f169c5911f3871f5df109bff9b.tar.gz
gcc-c1e9bbcc49c1b9f169c5911f3871f5df109bff9b.tar.bz2
Revert r244448
From-SVN: r244454
Diffstat (limited to 'gcc/fortran/misc.c')
-rw-r--r--gcc/fortran/misc.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/gcc/fortran/misc.c b/gcc/fortran/misc.c
index 7dd0557..a2c199e 100644
--- a/gcc/fortran/misc.c
+++ b/gcc/fortran/misc.c
@@ -22,7 +22,6 @@ along with GCC; see the file COPYING3. If not see
#include "system.h"
#include "coretypes.h"
#include "gfortran.h"
-#include "tree.h"
/* Initialize a typespec to unknown. */
@@ -281,24 +280,3 @@ get_c_kind(const char *c_kind_name, CInteropKind_t kinds_table[])
return ISOCBINDING_INVALID;
}
-
-
-/* Convert between GMP integers (mpz_t) and HOST_WIDE_INT. */
-
-HOST_WIDE_INT
-gfc_mpz_get_hwi (mpz_t op)
-{
- /* Using long_long_integer_type_node as that is the integer type
- node that closest matches HOST_WIDE_INT; both are guaranteed to
- be at least 64 bits. */
- const wide_int w = wi::from_mpz (long_long_integer_type_node, op, true);
- return w.to_shwi ();
-}
-
-
-void
-gfc_mpz_set_hwi (mpz_t rop, const HOST_WIDE_INT op)
-{
- const wide_int w = wi::shwi (op, HOST_BITS_PER_WIDE_INT);
- wi::to_mpz (w, rop, SIGNED);
-}