aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2007-02-27 14:26:13 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2007-02-27 14:26:13 +0000
commitd711ed873087fa5db39e921c8660d04cd0721ff0 (patch)
treed5c6da14a8bf24f06fc98254cb506080c996041c
parent329437dd43b86b3a8c5914e70e31b44e921f7fd6 (diff)
downloadgcc-d711ed873087fa5db39e921c8660d04cd0721ff0.zip
gcc-d711ed873087fa5db39e921c8660d04cd0721ff0.tar.gz
gcc-d711ed873087fa5db39e921c8660d04cd0721ff0.tar.bz2
trans-array.c (structure_alloc_comps): Use correct type for null pointer constant.
2007-02-27 Richard Guenther <rguenther@suse.de> * trans-array.c (structure_alloc_comps): Use correct type for null pointer constant. From-SVN: r122375
-rw-r--r--gcc/fortran/ChangeLog5
-rw-r--r--gcc/fortran/trans-array.c2
2 files changed, 6 insertions, 1 deletions
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 <rguenther@suse.de>
+
+ * trans-array.c (structure_alloc_comps): Use correct type
+ for null pointer constant.
+
2007-02-26 Brooks Moses <brooks.moses@codesourcery.com>
* 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
{