From: Andreas Krebbel Date: Wed, 23 Jan 2008 16:41:30 +0000 (+0000) Subject: ipa-struct-reorg.c (create_new_malloc): Use pointer type as malloc result type. X-Git-Tag: releases/gcc-4.3.0~453 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1b7af7b04cee6a97cdf17b3e585279608db60c0d;p=thirdparty%2Fgcc.git ipa-struct-reorg.c (create_new_malloc): Use pointer type as malloc result type. 2008-01-23 Andreas Krebbel * ipa-struct-reorg.c (create_new_malloc): Use pointer type as malloc result type. From-SVN: r131760 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e72ddc1b5941..c34dbd07bd88 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2008-01-23 Andreas Krebbel + + * ipa-struct-reorg.c (create_new_malloc): Use pointer type as + malloc result type. + 2008-01-23 Anatoly Sokolov * config/avr/avr.c (avr_current_arch): New variable. diff --git a/gcc/ipa-struct-reorg.c b/gcc/ipa-struct-reorg.c index 0619576e7327..3c90f44b6d13 100644 --- a/gcc/ipa-struct-reorg.c +++ b/gcc/ipa-struct-reorg.c @@ -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);