diff options
author | bonzini <bonzini@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-08-02 06:10:29 +0000 |
---|---|---|
committer | bonzini <bonzini@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-08-02 06:10:29 +0000 |
commit | 905ad4b8c8d33574a4d6f684fb4e4e2381949b3e (patch) | |
tree | 4d882102439539ff87e05d92518bcadb8d37cf0b | |
parent | a6b21a589c975453c2c3cf7301638550a00bf0f0 (diff) | |
download | gcc-905ad4b8c8d33574a4d6f684fb4e4e2381949b3e.tar.gz |
2009-08-02 Paolo Bonzini <bonzini@gnu.org
* explow.c (promote_function_mode): Remove assert.
* config/sh/sh.c (sh_promote_function_mode): Declare.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@150344 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/ChangeLog | 11 | ||||
-rw-r--r-- | gcc/config/sh/sh.c | 5 | ||||
-rw-r--r-- | gcc/explow.c | 1 |
3 files changed, 12 insertions, 5 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1a0e228f65e..7766e91b7cf 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,14 +1,19 @@ +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> - * 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 <bonzini@gnu.org> +2009-08-01 Paolo Bonzini <bonzini@gnu.org> * 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: |