From 42adef8f3242f13e3ba9296706a81e53dc62ca4f Mon Sep 17 00:00:00 2001 From: rguenth Date: Tue, 27 Feb 2007 14:26:13 +0000 Subject: [PATCH] 2007-02-27 Richard Guenther * trans-array.c (structure_alloc_comps): Use correct type for null pointer constant. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@122375 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/fortran/ChangeLog | 5 +++++ gcc/fortran/trans-array.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog index 46531e5..d4b548d 100644 --- a/gcc/fortran/ChangeLog +++ b/gcc/fortran/ChangeLog @@ -1,3 +1,8 @@ +2007-02-27 Richard Guenther + + * trans-array.c (structure_alloc_comps): Use correct type + for null pointer constant. + 2007-02-26 Brooks Moses * gfortran.texi: Standardize title page, remove version number diff --git a/gcc/fortran/trans-array.c b/gcc/fortran/trans-array.c index 683c8bd..c7e9da1 100644 --- a/gcc/fortran/trans-array.c +++ b/gcc/fortran/trans-array.c @@ -4990,7 +4990,7 @@ structure_alloc_comps (gfc_symbol * der_type, tree decl, null_cond = gfc_conv_descriptor_data_get (decl); null_cond = build2 (NE_EXPR, boolean_type_node, null_cond, - build_int_cst (TREE_TYPE (tmp), 0)); + build_int_cst (TREE_TYPE (null_cond), 0)); } else { -- 2.7.4