This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Remove duplicate implementation of target hooks in m32c

This patch just removes dummy definitions of TARGET_PROMOTE_FUNCTION_RETURN
and TARGET_PROMOTE_PROTOTYPES in the m32c port.

Ok for mainline?


2009-04-20  Paolo Bonzini  <>

        * config/m32c/m32c.c (TARGET_PROMOTE_FUNCTION_RETURN,
        m32c_promote_function_return, TARGET_PROMOTE_PROTOTYPES,
        m32c_promote_prototypes): Delete.

Index: gcc/config/m32c/m32c.c
--- gcc/config/m32c/m32c.c      (branch promote-function-mode)
+++ gcc/config/m32c/m32c.c      (working copy)
@@ -442,14 +442,6 @@ m32c_init_expanders (void)

 /* Storage Layout */

-#define TARGET_PROMOTE_FUNCTION_RETURN m32c_promote_function_return
-m32c_promote_function_return (const_tree fntype ATTRIBUTE_UNUSED)
-  return false;
 /* Register Basics */

 /* Basic Characteristics of Registers */
@@ -1440,14 +1432,6 @@ m32c_initial_elimination_offset (int fro

 /* Passing Function Arguments on the Stack */

-#define TARGET_PROMOTE_PROTOTYPES m32c_promote_prototypes
-static bool
-m32c_promote_prototypes (const_tree fntype ATTRIBUTE_UNUSED)
-  return 0;
 /* Implements PUSH_ROUNDING.  The R8C and M16C have byte stacks, the
    M32C has word stacks.  */

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]