]> gcc.gnu.org Git - gcc.git/commitdiff
expr.c (expand_load_internal): Convert to destination type.
authorAndrew Haley <aph@redhat.com>
Thu, 28 Jul 2005 15:00:53 +0000 (15:00 +0000)
committerAndrew Haley <aph@gcc.gnu.org>
Thu, 28 Jul 2005 15:00:53 +0000 (15:00 +0000)
2005-07-15  Andrew Haley  <aph@redhat.com>

        * expr.c (expand_load_internal): Convert to destination type.

From-SVN: r102485

gcc/java/ChangeLog
gcc/java/expr.c

index aa23f33e33b907bd17b1f299792f9348f6b1cfc0..e9a07d9ed555fde4776cac6555bb9cce3f2b5562 100644 (file)
@@ -1,3 +1,7 @@
+2005-07-15  Andrew Haley  <aph@redhat.com>
+
+       * expr.c (expand_load_internal): Convert to destination type.
+
 2005-07-22  Manfred Hollstein  <mh@suse.com>
 
        * verify-impl.c (check_class_constant): Fix uninitialised warnings.
index f3f4c84fdb3cf55d0fdaec351cbac92db3c13ce3..5c5a56ca9c4caf6e47a51fd959fabefd223c35a7 100644 (file)
@@ -1321,7 +1321,7 @@ expand_load_internal (int index, tree type, int pc)
      value into it.  Then we push this new local on the stack.
      Hopefully this all gets optimized out.  */
   copy = build_decl (VAR_DECL, NULL_TREE, type);
-  if (INTEGRAL_TYPE_P (type)
+  if (INTEGRAL_TYPE_P (type) || POINTER_TYPE_P (type)
       && TREE_TYPE (copy) != TREE_TYPE (var))
     var = convert (type, var);
   java_add_local_var (copy);
This page took 0.087777 seconds and 5 git commands to generate.