Mercurial > hg > CbC > CbC_gcc
diff gcc/config/xtensa/xtensa.c @ 63:b7f97abdc517 gcc-4.6-20100522
update gcc from gcc-4.5.0 to gcc-4.6
author | ryoma <e075725@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 24 May 2010 12:47:05 +0900 |
parents | 77e2b8dfacca |
children | f6334be47118 |
line wrap: on
line diff
--- a/gcc/config/xtensa/xtensa.c Fri Feb 12 23:41:23 2010 +0900 +++ b/gcc/config/xtensa/xtensa.c Mon May 24 12:47:05 2010 +0900 @@ -27,7 +27,6 @@ #include "regs.h" #include "hard-reg-set.h" #include "basic-block.h" -#include "real.h" #include "insn-config.h" #include "conditions.h" #include "insn-flags.h" @@ -142,7 +141,7 @@ gimple_seq *); static rtx xtensa_function_value (const_tree, const_tree, bool); static void xtensa_init_builtins (void); -static tree xtensa_fold_builtin (tree, tree, bool); +static tree xtensa_fold_builtin (tree, int, tree *, bool); static rtx xtensa_expand_builtin (tree, rtx, rtx, enum machine_mode, int); static void xtensa_va_start (tree, rtx); static bool xtensa_frame_pointer_required (void); @@ -3000,7 +2999,8 @@ static tree -xtensa_fold_builtin (tree fndecl, tree arglist, bool ignore ATTRIBUTE_UNUSED) +xtensa_fold_builtin (tree fndecl, int n_args ATTRIBUTE_UNUSED, tree *args, + bool ignore ATTRIBUTE_UNUSED) { unsigned int fcode = DECL_FUNCTION_CODE (fndecl); tree arg0, arg1; @@ -3008,8 +3008,8 @@ switch (fcode) { case XTENSA_BUILTIN_UMULSIDI3: - arg0 = TREE_VALUE (arglist); - arg1 = TREE_VALUE (TREE_CHAIN (arglist)); + arg0 = args[0]; + arg1 = args[1]; if ((TREE_CODE (arg0) == INTEGER_CST && TREE_CODE (arg1) == INTEGER_CST) || TARGET_MUL32_HIGH) return fold_build2 (MULT_EXPR, unsigned_intDI_type_node,