Commit 6e957ac8 by Paolo Bonzini Committed by Paolo Bonzini

2009-08-02 Paolo Bonzini <bonzini@gnu.org

	* explow.c (promote_function_mode): Remove assert.
	* config/sh/sh.c (sh_promote_function_mode): Declare.

From-SVN: r150344
parent 02095c50
2009-08-02 Paolo Bonzini <bonzini@gnu.org
* explow.c (promote_function_mode): Remove assert.
* config/sh/sh.c (sh_promote_function_mode): Declare.
2009-08-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> 2009-08-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
* pa.c (pa_promote_function_mode): Declare. Change to static. * config/pa/pa.c (pa_promote_function_mode): Declare.
Fix promote_mode call. Change to static. Fix promote_mode call.
* gthr-dce.h (CONST_CAST2): Define if not defined. * gthr-dce.h (CONST_CAST2): Define if not defined.
(__gthread_setspecific): Use CONST_CAST2 to fix warning. (__gthread_setspecific): Use CONST_CAST2 to fix warning.
* config.gcc (hppa[12]*-*-hpux10*): Add stdint support. * config.gcc (hppa[12]*-*-hpux10*): Add stdint support.
2009-04-17 Paolo Bonzini <bonzini@gnu.org> 2009-08-01 Paolo Bonzini <bonzini@gnu.org>
* expr.c (store_constructor): Use promote_decl_mode. Remove * expr.c (store_constructor): Use promote_decl_mode. Remove
now write-only variable unsignedp. now write-only variable unsignedp.
......
...@@ -257,6 +257,9 @@ static bool sh_pretend_outgoing_varargs_named (CUMULATIVE_ARGS *); ...@@ -257,6 +257,9 @@ static bool sh_pretend_outgoing_varargs_named (CUMULATIVE_ARGS *);
static tree sh_build_builtin_va_list (void); static tree sh_build_builtin_va_list (void);
static void sh_va_start (tree, rtx); static void sh_va_start (tree, rtx);
static tree sh_gimplify_va_arg_expr (tree, tree, gimple_seq *, gimple_seq *); 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, static bool sh_pass_by_reference (CUMULATIVE_ARGS *, enum machine_mode,
const_tree, bool); const_tree, bool);
static bool sh_callee_copies (CUMULATIVE_ARGS *, enum machine_mode, static bool sh_callee_copies (CUMULATIVE_ARGS *, enum machine_mode,
...@@ -7894,7 +7897,7 @@ sh_dwarf_register_span (rtx reg) ...@@ -7894,7 +7897,7 @@ sh_dwarf_register_span (rtx reg)
DBX_REGISTER_NUMBER (regno)))); DBX_REGISTER_NUMBER (regno))));
} }
enum machine_mode static enum machine_mode
sh_promote_function_mode (const_tree type, enum machine_mode mode, sh_promote_function_mode (const_tree type, enum machine_mode mode,
int *punsignedp, const_tree funtype, int for_return) int *punsignedp, const_tree funtype, int for_return)
{ {
......
...@@ -760,7 +760,6 @@ enum machine_mode ...@@ -760,7 +760,6 @@ enum machine_mode
promote_function_mode (const_tree type, enum machine_mode mode, int *punsignedp, promote_function_mode (const_tree type, enum machine_mode mode, int *punsignedp,
const_tree funtype, int for_return) const_tree funtype, int for_return)
{ {
gcc_assert (GET_MODE_CLASS (mode) != MODE_COMPLEX_INT);
switch (TREE_CODE (type)) switch (TREE_CODE (type))
{ {
case INTEGER_TYPE: case ENUMERAL_TYPE: case BOOLEAN_TYPE: case INTEGER_TYPE: case ENUMERAL_TYPE: case BOOLEAN_TYPE:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment