aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@acm.org>2007-04-13 20:35:50 +0000
committerBob Wilson <bwilson@gcc.gnu.org>2007-04-13 20:35:50 +0000
commitec3643e8c44fc45b73f70f6a5a3876f2efb966fa (patch)
tree46c08d24433bcba527718f7e7e5b7e2d681f5611
parent6253b7603b8d5051afc1acc766098093db589e20 (diff)
downloadgcc-ec3643e8c44fc45b73f70f6a5a3876f2efb966fa.zip
gcc-ec3643e8c44fc45b73f70f6a5a3876f2efb966fa.tar.gz
gcc-ec3643e8c44fc45b73f70f6a5a3876f2efb966fa.tar.bz2
* config/xtensa/xtensa.c (xtensa_expand_builtin): Use CALL_EXPR_FN.
From-SVN: r123797
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/config/xtensa/xtensa.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 1c32a95..c5322d6 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2007-04-13 Bob Wilson <bob.wilson@acm.org>
+
+ * config/xtensa/xtensa.c (xtensa_expand_builtin): Use CALL_EXPR_FN.
+
2007-04-13 Mike Stump <mrs@apple.com>
* config/darwin-c.c (handle_c_option): Handle -fapple-kext here so
diff --git a/gcc/config/xtensa/xtensa.c b/gcc/config/xtensa/xtensa.c
index 5f7e6d0..43bcc58 100644
--- a/gcc/config/xtensa/xtensa.c
+++ b/gcc/config/xtensa/xtensa.c
@@ -2473,7 +2473,7 @@ xtensa_expand_builtin (tree exp, rtx target,
enum machine_mode mode ATTRIBUTE_UNUSED,
int ignore)
{
- 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);
/* The umulsidi3 builtin is just a mechanism to avoid calling the real