]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
2009-08-02 Paolo Bonzini <bonzini@gnu.org
authorPaolo Bonzini <bonzini@gnu.org>
Sun, 2 Aug 2009 06:10:29 +0000 (06:10 +0000)
committerPaolo Bonzini <bonzini@gcc.gnu.org>
Sun, 2 Aug 2009 06:10:29 +0000 (06:10 +0000)
* explow.c (promote_function_mode): Remove assert.
* config/sh/sh.c (sh_promote_function_mode): Declare.

From-SVN: r150344

gcc/ChangeLog
gcc/config/sh/sh.c
gcc/explow.c

index 1a0e228f65ec39d87a664defa824ed940dd083d0..7766e91b7cfff84ed288e836041a7f0769cf6f97 100644 (file)
@@ -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.
index 9c919d0a774103c633241573665f5ffb110cc764..60bb86566e17cb59045039959a586af8efc95bd2 100644 (file)
@@ -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)
 {
index 0a2616436e3fd02ed4e1ab102ce7978ffeb7ae18..32397bcbbf9c2800c099402258582b347fcd5ca9 100644 (file)
@@ -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: