arm.c (arm_gimplify_va_arg_expr): Update prototype to take gimple_seq * arguments.
authorJoseph Myers <joseph@codesourcery.com>
Sat, 21 Feb 2009 02:18:01 +0000 (02:18 +0000)
committerJoseph Myers <jsm28@gcc.gnu.org>
Sat, 21 Feb 2009 02:18:01 +0000 (02:18 +0000)
* config/arm/arm.c (arm_gimplify_va_arg_expr): Update prototype to
take gimple_seq * arguments.
(arm_mangle_type): Use CONST_CAST_TREE on type argument passed to
types_compatible_p langhook.

From-SVN: r144344

gcc/ChangeLog
gcc/config/arm/arm.c

index 70871ff12818d09872c4f0a30cdb4375d56b2f36..1bcc3b1d3a6b5a8b036cccb9f8e59843cc140d4e 100644 (file)
@@ -1,3 +1,10 @@
+2009-02-21  Joseph Myers  <joseph@codesourcery.com>
+
+       * config/arm/arm.c (arm_gimplify_va_arg_expr): Update prototype to
+       take gimple_seq * arguments.
+       (arm_mangle_type): Use CONST_CAST_TREE on type argument passed to
+       types_compatible_p langhook.
+
 2009-02-20  Mark Mitchell  <mark@codesourcery.com>
             Joseph Myers  <joseph@codesourcery.com>
 
index 772f1fc5652aec0519d6cd7972271fb2f916b5c6..c25fc29e411ee574d7f785277039c88c3388fddb 100644 (file)
@@ -188,7 +188,7 @@ static bool arm_cxx_use_aeabi_atexit (void);
 static void arm_init_libfuncs (void);
 static tree arm_build_builtin_va_list (void);
 static void arm_expand_builtin_va_start (tree, rtx);
-static tree arm_gimplify_va_arg_expr (tree, tree, tree *, tree *);
+static tree arm_gimplify_va_arg_expr (tree, tree, gimple_seq *, gimple_seq *);
 static bool arm_handle_option (size_t, const char *, int);
 static void arm_target_help (void);
 static unsigned HOST_WIDE_INT arm_shift_truncation_mask (enum machine_mode);
@@ -1004,8 +1004,8 @@ arm_expand_builtin_va_start (tree valist, rtx nextarg)
 
 /* Implement TARGET_GIMPLIFY_VA_ARG_EXPR.  */
 static tree
-arm_gimplify_va_arg_expr (tree valist, tree type, tree *pre_p, 
-                         tree *post_p)
+arm_gimplify_va_arg_expr (tree valist, tree type, gimple_seq *pre_p, 
+                         gimple_seq *post_p)
 {
   valist = arm_extract_valist_ptr (valist);
   return std_gimplify_va_arg_expr (valist, type, pre_p, post_p);
@@ -19606,7 +19606,7 @@ arm_mangle_type (const_tree type)
   /* The ARM ABI documents (10th October 2008) say that "__va_list"
      has to be managled as if it is in the "std" namespace.  */
   if (TARGET_AAPCS_BASED 
-      && lang_hooks.types_compatible_p (type, va_list_type))
+      && lang_hooks.types_compatible_p (CONST_CAST_TREE (type), va_list_type))
     {
       static bool warned;
       if (!warned && warn_psabi)