summaryrefslogtreecommitdiff
path: root/gcc/fortran/trans-const.h
diff options
context:
space:
mode:
authorbrooks <brooks@138bc75d-0d04-0410-961f-82ee72b054a4>2007-04-30 19:17:59 +0000
committerbrooks <brooks@138bc75d-0d04-0410-961f-82ee72b054a4>2007-04-30 19:17:59 +0000
commit6b755e7273046ac17c162064e0aa87d01a265d3e (patch)
treee3bf3bf016695d90ad6f4c85478f7148d7488dbb /gcc/fortran/trans-const.h
parent612a17fc003aefd310cd106ca3bab69b7f855956 (diff)
downloadgcc-6b755e7273046ac17c162064e0aa87d01a265d3e.tar.gz
* trans-const.c (gfc_conv_mpz_to_tree): Use mpz_get_double_int.
(gfc_conv_tree_to_mpz): New function. (gfc_conv_mpfr_to_tree): Use real_from_mpfr. (gfc_conv_tree_to_mpfr): New function. * trans-const.h: (gfc_conv_tree_to_mpz): New prototype. (gfc_conv_tree_to_mpfr): New prototype. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124305 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fortran/trans-const.h')
-rw-r--r--gcc/fortran/trans-const.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/fortran/trans-const.h b/gcc/fortran/trans-const.h
index 2b071168c24..1f4157ee46e 100644
--- a/gcc/fortran/trans-const.h
+++ b/gcc/fortran/trans-const.h
@@ -20,11 +20,13 @@ along with GCC; see the file COPYING. If not, write to the Free
Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301, USA. */
-/* Returns an INT_CST. */
+/* Converts between INT_CST and GMP integer representations. */
tree gfc_conv_mpz_to_tree (mpz_t, int);
+void gfc_conv_tree_to_mpz (mpz_t, tree);
-/* Returns a REAL_CST. */
+/* Converts between REAL_CST and MPFR floating-point representations. */
tree gfc_conv_mpfr_to_tree (mpfr_t, int);
+void gfc_conv_tree_to_mpfr (mpfr_ptr, tree);
/* Build a tree for a constant. Must be an EXPR_CONSTANT gfc_expr.
For CHARACTER literal constants, the caller still has to set the