* config/sh/sh.c (sh_gimplify_va_arg_expr): Fix sh2a support.

From-SVN: r127879
This commit is contained in:
DJ Delorie 2007-08-28 23:37:01 -04:00 committed by DJ Delorie
parent 0b51511b2f
commit bdf57c4096
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2007-08-28 DJ Delorie <dj@redhat.com>
* config/sh/sh.c (sh_gimplify_va_arg_expr): Fix sh2a support.
2007-08-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* system.h (CONST_CAST): Avoid union for gcc-4.0.x.

View File

@ -7201,7 +7201,7 @@ sh_gimplify_va_arg_expr (tree valist, tree type, tree *pre_p,
}
}
if (TARGET_SH4)
if (TARGET_SH4 || TARGET_SH2A_DOUBLE)
{
pass_as_float = ((TREE_CODE (eff_type) == REAL_TYPE && size <= 8)
|| (TREE_CODE (eff_type) == COMPLEX_TYPE
@ -7313,7 +7313,7 @@ sh_gimplify_va_arg_expr (tree valist, tree type, tree *pre_p,
tmp = build1 (LABEL_EXPR, void_type_node, lab_false);
gimplify_and_add (tmp, pre_p);
if (size > 4 && ! TARGET_SH4)
if (size > 4 && ! (TARGET_SH4 || TARGET_SH2A))
{
tmp = build2 (GIMPLE_MODIFY_STMT, ptr_type_node,
next_o, next_o_limit);