aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp
diff options
context:
space:
mode:
authorDan Hipschman <dsh@google.com>2007-08-06 15:02:56 -0700
committerDan Hipschman <dsh@gcc.gnu.org>2007-08-06 15:02:56 -0700
commitaf34b82ff433908ebee037301d0f62e2f6e9d8cb (patch)
treecac8abf9a82d1f2822d108fff81fa17fd0a020f9 /gcc/cp
parentccc1b8719100558159a893555e8fb534fe672cbe (diff)
downloadgcc-af34b82ff433908ebee037301d0f62e2f6e9d8cb.zip
gcc-af34b82ff433908ebee037301d0f62e2f6e9d8cb.tar.gz
gcc-af34b82ff433908ebee037301d0f62e2f6e9d8cb.tar.bz2
method.c (use_thunk): Use DECL_NAME instead of DECL_RTL to access function name.
2007-08-06 Dan Hipschman <dsh@google.com> * method.c (use_thunk): Use DECL_NAME instead of DECL_RTL to access function name. From-SVN: r127255
Diffstat (limited to 'gcc/cp')
-rw-r--r--gcc/cp/ChangeLog5
-rw-r--r--gcc/cp/method.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index eef4d12..e656382 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,8 @@
+2007-08-06 Dan Hipschman <dsh@google.com>
+
+ * method.c (use_thunk): Use DECL_NAME instead of DECL_RTL to
+ access function name.
+
2007-08-04 Alfred Minarik <a.minarik@aon.at>
PR pch/13676
diff --git a/gcc/cp/method.c b/gcc/cp/method.c
index 32cf586..f4b43a2 100644
--- a/gcc/cp/method.c
+++ b/gcc/cp/method.c
@@ -430,7 +430,7 @@ use_thunk (tree thunk_fndecl, bool emit_p)
current_function_decl = thunk_fndecl;
DECL_RESULT (thunk_fndecl)
= build_decl (RESULT_DECL, 0, integer_type_node);
- fnname = XSTR (XEXP (DECL_RTL (thunk_fndecl), 0), 0);
+ fnname = IDENTIFIER_POINTER (DECL_NAME (thunk_fndecl));
/* The back end expects DECL_INITIAL to contain a BLOCK, so we
create one. */
fn_block = make_node (BLOCK);