From 6ba692b44cf63fda5749e53c8dbb45e96ff99464 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Schl=C3=BCter?= Date: Sat, 22 Jan 2005 01:29:33 +0100 Subject: re PR middle-end/19543 ([4.1 only] fortran LOGICAL*8 not consistently distinguished from 32 bit integers) PR fortran/19543 * trans-const.c (gfc_conv_constant_to_tree): Give logical constants the correct type. From-SVN: r94054 --- gcc/fortran/trans-const.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gcc/fortran/trans-const.c') diff --git a/gcc/fortran/trans-const.c b/gcc/fortran/trans-const.c index 7388853..382bbbe 100644 --- a/gcc/fortran/trans-const.c +++ b/gcc/fortran/trans-const.c @@ -306,7 +306,8 @@ gfc_conv_constant_to_tree (gfc_expr * expr) return gfc_conv_mpfr_to_tree (expr->value.real, expr->ts.kind); case BT_LOGICAL: - return build_int_cst (NULL_TREE, expr->value.logical); + return build_int_cst (gfc_get_logical_type (expr->ts.kind), + expr->value.logical); case BT_COMPLEX: { -- cgit v1.1