ipa-struct-reorg.c (create_new_malloc): Use pointer type as malloc result type.
authorAndreas Krebbel <krebbel1@de.ibm.com>
Wed, 23 Jan 2008 16:41:30 +0000 (16:41 +0000)
committerAndreas Krebbel <krebbel@gcc.gnu.org>
Wed, 23 Jan 2008 16:41:30 +0000 (16:41 +0000)
2008-01-23  Andreas Krebbel  <krebbel1@de.ibm.com>

* ipa-struct-reorg.c (create_new_malloc): Use pointer type as
malloc result type.

From-SVN: r131760

gcc/ChangeLog
gcc/ipa-struct-reorg.c

index e72ddc1..c34dbd0 100644 (file)
@@ -1,3 +1,8 @@
+2008-01-23  Andreas Krebbel  <krebbel1@de.ibm.com>
+
+       * ipa-struct-reorg.c (create_new_malloc): Use pointer type as
+       malloc result type.
+
 2008-01-23 Anatoly Sokolov <aesok@post.ru>
 
        * config/avr/avr.c (avr_current_arch): New variable.
index 0619576..3c90f44 100644 (file)
@@ -1735,7 +1735,7 @@ create_new_malloc (tree malloc_stmt, tree new_type, tree *new_stmts, tree num)
   append_to_statement_list (new_stmt, new_stmts);
 
   /* Generate new call for malloc.  */
-  malloc_res = create_tmp_var (integer_type_node, NULL);
+  malloc_res = create_tmp_var (ptr_type_node, NULL);
 
   if (malloc_res)
     add_referenced_var (malloc_res);