OSDN Git Service

gcc/
[pf3gnuchains/gcc-fork.git] / gcc / config / m68k / netbsd-elf.h
index 234d017..13aca93 100644 (file)
@@ -233,6 +233,8 @@ while (0)
 
 #undef STATIC_CHAIN_REGNUM
 #define STATIC_CHAIN_REGNUM 9
+#undef M68K_STATIC_CHAIN_REG_NAME
+#define M68K_STATIC_CHAIN_REG_NAME REGISTER_PREFIX "a1"
 
 
 /* Now to renumber registers for dbx and gdb.
@@ -273,24 +275,6 @@ while (0)
   m68k_function_value (VALTYPE, FUNC)
 
 
-/* For compatibility with the large body of existing code which does
-   not always properly declare external functions returning pointer
-   types, the m68k/SVR4 convention is to copy the value returned for
-   pointer functions from a0 to d0 in the function epilogue, so that
-   callers that have neglected to properly declare the callee can
-   still find the correct return value.  */
-
-extern int current_function_returns_pointer;
-#define FUNCTION_EXTRA_EPILOGUE(FILE, SIZE)                            \
-do                                                                     \
-  {                                                                    \
-    if (current_function_returns_pointer                               \
-       && ! find_equiv_reg (0, get_last_insn (), 0, 0, 0, 8, Pmode))   \
-      asm_fprintf (FILE, "\tmove.l %Ra0,%Rd0\n");                      \
-  }                                                                    \
-while (0)
-
-
 /* Define how to find the value returned by a library function
    assuming the value has mode MODE.
    For m68k/SVR4 look for integer values in d0, pointer values in d0