aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMichael Matz <matz@suse.de>2011-06-22 13:59:03 +0000
committerMichael Matz <matz@gcc.gnu.org>2011-06-22 13:59:03 +0000
commit4399cf590fbac5aa65ff0e44e8e5dade5741773f (patch)
tree8306ed93e371cb8696ed9b0565dc2376fa3b8c12 /gcc
parent31a0c8251b9fb551d9979988e5e63df8bcc1d65f (diff)
downloadgcc-4399cf590fbac5aa65ff0e44e8e5dade5741773f.zip
gcc-4399cf590fbac5aa65ff0e44e8e5dade5741773f.tar.gz
gcc-4399cf590fbac5aa65ff0e44e8e5dade5741773f.tar.bz2
* cgraphunit.c (assemble_thunk): Use correct return type.
From-SVN: r175294
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/cgraphunit.c3
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 9a07519..125a9b2 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2011-06-22 Michael Matz <matz@suse.de>
+
+ * cgraphunit.c (assemble_thunk): Use correct return type.
+
2011-06-22 Dmitry Plotnikov <dplotnikov@ispras.ru>
Dmitry Melnik <dm@ispras.ru>
diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c
index de9bbe3..eefd372 100644
--- a/gcc/cgraphunit.c
+++ b/gcc/cgraphunit.c
@@ -1581,10 +1581,11 @@ assemble_thunk (struct cgraph_node *node)
{
const char *fnname;
tree fn_block;
+ tree restype = TREE_TYPE (TREE_TYPE (thunk_fndecl));
DECL_RESULT (thunk_fndecl)
= build_decl (DECL_SOURCE_LOCATION (thunk_fndecl),
- RESULT_DECL, 0, integer_type_node);
+ RESULT_DECL, 0, restype);
fnname = IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (thunk_fndecl));
/* The back end expects DECL_INITIAL to contain a BLOCK, so we