This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

fix Xtensa fallout from CALL_EXPR change


I guess it's been a while since I tested the Xtensa port on mainline.... I've committed this patch to fix the most obvious breakage. I'm seeing a few other new failures but I haven't yet had a chance to track them down.

2007-04-13 Bob Wilson <bob.wilson@acm.org>

* config/xtensa/xtensa.c (xtensa_expand_builtin): Use CALL_EXPR_FN.

Index: config/xtensa/xtensa.c
===================================================================
--- config/xtensa/xtensa.c	(revision 123792)
+++ config/xtensa/xtensa.c	(working copy)
@@ -2473,7 +2473,7 @@
 		       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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]