From 905ad4b8c8d33574a4d6f684fb4e4e2381949b3e Mon Sep 17 00:00:00 2001 From: bonzini Date: Sun, 2 Aug 2009 06:10:29 +0000 Subject: [PATCH] 2009-08-02 Paolo Bonzini - * pa.c (pa_promote_function_mode): Declare. Change to static. - Fix promote_mode call. + * config/pa/pa.c (pa_promote_function_mode): Declare. + Change to static. Fix promote_mode call. * gthr-dce.h (CONST_CAST2): Define if not defined. (__gthread_setspecific): Use CONST_CAST2 to fix warning. * config.gcc (hppa[12]*-*-hpux10*): Add stdint support. -2009-04-17 Paolo Bonzini +2009-08-01 Paolo Bonzini * expr.c (store_constructor): Use promote_decl_mode. Remove now write-only variable unsignedp. diff --git a/gcc/config/sh/sh.c b/gcc/config/sh/sh.c index 9c919d0a774..60bb86566e1 100644 --- a/gcc/config/sh/sh.c +++ b/gcc/config/sh/sh.c @@ -257,6 +257,9 @@ static bool sh_pretend_outgoing_varargs_named (CUMULATIVE_ARGS *); static tree sh_build_builtin_va_list (void); static void sh_va_start (tree, rtx); static tree sh_gimplify_va_arg_expr (tree, tree, gimple_seq *, gimple_seq *); +static enum machine_mode sh_promote_function_mode (const_tree type, enum machine_mode, + int *punsignedp, const_tree funtype, + int for_return); static bool sh_pass_by_reference (CUMULATIVE_ARGS *, enum machine_mode, const_tree, bool); static bool sh_callee_copies (CUMULATIVE_ARGS *, enum machine_mode, @@ -7894,7 +7897,7 @@ sh_dwarf_register_span (rtx reg) DBX_REGISTER_NUMBER (regno)))); } -enum machine_mode +static enum machine_mode sh_promote_function_mode (const_tree type, enum machine_mode mode, int *punsignedp, const_tree funtype, int for_return) { diff --git a/gcc/explow.c b/gcc/explow.c index 0a2616436e3..32397bcbbf9 100644 --- a/gcc/explow.c +++ b/gcc/explow.c @@ -760,7 +760,6 @@ enum machine_mode promote_function_mode (const_tree type, enum machine_mode mode, int *punsignedp, const_tree funtype, int for_return) { - gcc_assert (GET_MODE_CLASS (mode) != MODE_COMPLEX_INT); switch (TREE_CODE (type)) { case INTEGER_TYPE: case ENUMERAL_TYPE: case BOOLEAN_TYPE: -- 2.11.0