OSDN Git Service

2005-07-15 Andrew Haley <aph@redhat.com>
authoraph <aph@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 28 Jul 2005 15:00:53 +0000 (15:00 +0000)
committeraph <aph@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 28 Jul 2005 15:00:53 +0000 (15:00 +0000)
        * expr.c (expand_load_internal): Convert to destination type.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@102485 138bc75d-0d04-0410-961f-82ee72b054a4

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

index aa23f33..e9a07d9 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 f3f4c84..5c5a56c 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);