From: lmillward Date: Mon, 19 Feb 2007 22:39:13 +0000 (+0000) Subject: * config/ia64/ia64.c (ia64_expand_builtin): Use the X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f3a91845ae88e75c1f927227fc19a2bfdffd53cf;p=thirdparty%2Fgcc.git * config/ia64/ia64.c (ia64_expand_builtin): Use the new CALL_EXPR_FN macro for retrieving the function declaration of the input expression. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@122139 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 631441488db6..1d515afb8d8d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2007-02-19 Lee Millward + + * config/ia64/ia64.c (ia64_expand_builtin): Use the + new CALL_EXPR_FN macro for retrieving the function + declaration of the input expression. + 2007-02-19 Manuel Lopez-Ibanez * c.opt (Waddress): New. diff --git a/gcc/config/ia64/ia64.c b/gcc/config/ia64/ia64.c index ead7f6652655..f1dbfc35a739 100644 --- a/gcc/config/ia64/ia64.c +++ b/gcc/config/ia64/ia64.c @@ -9191,7 +9191,7 @@ ia64_expand_builtin (tree exp, rtx target, rtx subtarget ATTRIBUTE_UNUSED, enum machine_mode mode ATTRIBUTE_UNUSED, int ignore ATTRIBUTE_UNUSED) { - tree fndecl = TREE_OPERAND (TREE_OPERAND (exp, 0), 0); + tree fndecl = TREE_OPERAND (CALL_EXPR_FN (exp), 0); unsigned int fcode = DECL_FUNCTION_CODE (fndecl); switch (fcode)