diff options
author | Paolo Bonzini <bonzini@gnu.org> | 2009-08-02 06:10:29 +0000 |
---|---|---|
committer | Paolo Bonzini <bonzini@gcc.gnu.org> | 2009-08-02 06:10:29 +0000 |
commit | 6e957ac87070df04868f1f6197671b6cbe2259d2 (patch) | |
tree | 4d882102439539ff87e05d92518bcadb8d37cf0b /gcc | |
parent | 02095c5014adb3c04d3164819ebf953f85ccdb70 (diff) | |
download | gcc-6e957ac87070df04868f1f6197671b6cbe2259d2.zip gcc-6e957ac87070df04868f1f6197671b6cbe2259d2.tar.gz gcc-6e957ac87070df04868f1f6197671b6cbe2259d2.tar.bz2 |
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
Diffstat (limited to 'gcc')
-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 1a0e228..7766e91 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 9c919d0..60bb865 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 0a26164..32397bcb 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: |