200x-xx-xx Kazu Hirata <kazu@codesourcery.com>

gcc/
200x-xx-xx  Kazu Hirata  <kazu@codesourcery.com>

	* config/m68k/m68k-protos.h (use_return_insn): Rename to...
	(m68k_use_return_insn): ...this.
	* config/m68k/m68k.h (USE_RETURN_INSN): Delete.
	* config/m68k/m68k.c (use_return_insn): Rename to...
	(m68k_use_return_insn): ...this.
	* config/m68k/m68k.md (return): Use m68k_use_return_insn instead
	of USE_RETURN_INSN.

From-SVN: r120926
This commit is contained in:
Kazu Hirata 2007-01-18 19:50:48 +00:00 committed by Richard Sandiford
parent e444d54e44
commit a2bda628bf
5 changed files with 13 additions and 9 deletions

View File

@ -1,3 +1,13 @@
2007-01-18 Kazu Hirata <kazu@codesourcery.com>
* config/m68k/m68k-protos.h (use_return_insn): Rename to...
(m68k_use_return_insn): ...this.
* config/m68k/m68k.h (USE_RETURN_INSN): Delete.
* config/m68k/m68k.c (use_return_insn): Rename to...
(m68k_use_return_insn): ...this.
* config/m68k/m68k.md (return): Use m68k_use_return_insn instead
of USE_RETURN_INSN.
2007-01-18 Nathan Sidwell <nathan@codesourcery.com>
* config/m68k/fpgnulib.c (__truncdfsf2): Implement round to

View File

@ -59,7 +59,7 @@ extern int emit_move_sequence (rtx *, enum machine_mode, rtx);
extern bool m68k_regno_mode_ok (int, enum machine_mode);
extern int flags_in_68881 (void);
extern bool use_return_insn (void);
extern bool m68k_use_return_insn (void);
extern void override_options (void);
extern const char *m68k_cpp_cpu_ident (const char *);
extern const char *m68k_cpp_cpu_family (const char *);

View File

@ -1022,7 +1022,7 @@ m68k_output_function_prologue (FILE *stream,
/* Return true if this function's epilogue can be output as RTL. */
bool
use_return_insn (void)
m68k_use_return_insn (void)
{
if (!reload_completed || frame_pointer_needed || get_frame_size () != 0)
return false;

View File

@ -648,12 +648,6 @@ extern enum reg_class regno_reg_class[];
#define EXIT_IGNORE_STACK 1
/* Determine if the epilogue should be output as RTL.
You should override this if you define FUNCTION_EXTRA_EPILOGUE.
XXX This macro is m68k-specific and only used in m68k.md. */
#define USE_RETURN_INSN use_return_insn ()
/* Output assembler code for a block containing the constant parts
of a trampoline, leaving space for the variable parts.

View File

@ -6455,7 +6455,7 @@
;; Used for frameless functions which save no regs and allocate no locals.
(define_insn "return"
[(return)]
"USE_RETURN_INSN"
"m68k_use_return_insn ()"
{
if (current_function_pops_args == 0)
return "rts";