m68k.c (m68k_output_function_prologue): Move front comment from here to...

* config/m68k/m68k.c (m68k_output_function_prologue): Move front
	comment from here to...
	(m68k_save_reg): ...here. Fix comment formatting.
	(m68k_output_function_prologue): Fix comment formatting.
	(m68k_output_function_epilogue): Likewise.
	(const_method): Likewise.

From-SVN: r72954
This commit is contained in:
Gunther Nikl 2003-10-26 16:03:21 +00:00 committed by Bernardo Innocenti
parent b36c208a36
commit 97c5509198
2 changed files with 23 additions and 17 deletions

View File

@ -1,3 +1,12 @@
2003-10-21 Gunther Nikl <gni@gecko.de>
* config/m68k/m68k.c (m68k_output_function_prologue): Move front
comment from here to...
(m68k_save_reg): ...here. Fix comment formatting.
(m68k_output_function_prologue): Fix comment formatting.
(m68k_output_function_epilogue): Likewise.
(const_method): Likewise.
2003-10-26 Kazu Hirata <kazu@cs.umass.edu>
* toplev.c (default_get_pch_validity): Guard the use of

View File

@ -392,7 +392,12 @@ m68k_initial_elimination_offset (int from, int to)
abort();
}
/* Return true if we need to save REGNO. */
/* Refer to the array `regs_ever_live' to determine which registers
to save; `regs_ever_live[I]' is nonzero if register number I
is ever used in the function. This function is responsible for
knowing which registers should not be saved even if used.
Return true if we need to save REGNO. */
static bool
m68k_save_reg (unsigned int regno, bool interrupt_handler)
{
@ -442,15 +447,7 @@ m68k_save_reg (unsigned int regno, bool interrupt_handler)
/* This function generates the assembly code for function entry.
STREAM is a stdio stream to output the code to.
SIZE is an int: how many units of temporary storage to allocate.
Refer to the array `regs_ever_live' to determine which registers
to save; `regs_ever_live[I]' is nonzero if register number I
is ever used in the function. This function is responsible for
knowing which registers should not be saved even if used. */
/* Note that the order of the bit mask for fmovem is the opposite
of the order for movem! */
SIZE is an int: how many units of temporary storage to allocate. */
static void
m68k_output_function_prologue (FILE *stream, HOST_WIDE_INT size ATTRIBUTE_UNUSED)
@ -475,7 +472,7 @@ m68k_output_function_prologue (FILE *stream, HOST_WIDE_INT size ATTRIBUTE_UNUSED
#endif
}
/* on ColdFire add register save into initial stack frame setup, if possible */
/* On ColdFire add register save into initial stack frame setup, if possible. */
num_saved_regs = 0;
if (TARGET_COLDFIRE && current_frame.reg_no > 2)
num_saved_regs = current_frame.reg_no;
@ -657,7 +654,7 @@ m68k_output_function_prologue (FILE *stream, HOST_WIDE_INT size ATTRIBUTE_UNUSED
/* Store each separately in the same order moveml uses.
Using two movel instructions instead of a single moveml
is about 15% faster for the 68020 and 68030 at no expense
in code size */
in code size. */
int i;
@ -803,14 +800,14 @@ m68k_output_function_epilogue (FILE *stream, HOST_WIDE_INT size ATTRIBUTE_UNUSED
|| (! current_function_calls_alloca && leaf_function_p ());
/* fsize_with_regs is the size we need to adjust the sp when
popping the frame */
popping the frame. */
fsize_with_regs = fsize;
/* Because the ColdFire doesn't support moveml with
complex address modes, we must adjust the stack manually
after restoring registers. When the frame pointer isn't used,
we can merge movem adjustment into frame unlinking
made immediately after it. */
made immediately after it. */
if (TARGET_COLDFIRE && restore_from_sp && (current_frame.reg_no > 2))
fsize_with_regs += current_frame.reg_no * 4;
@ -819,7 +816,7 @@ m68k_output_function_epilogue (FILE *stream, HOST_WIDE_INT size ATTRIBUTE_UNUSED
&& (current_frame.reg_mask || current_frame.fpu_mask))
{
/* Because the ColdFire doesn't support moveml with
complex address modes we make an extra correction here */
complex address modes we make an extra correction here. */
if (TARGET_COLDFIRE)
{
#ifdef MOTOROLA
@ -897,7 +894,7 @@ m68k_output_function_epilogue (FILE *stream, HOST_WIDE_INT size ATTRIBUTE_UNUSED
}
else if (current_frame.reg_mask)
{
/* The ColdFire requires special handling due to its limited moveml insn */
/* The ColdFire requires special handling due to its limited moveml insn. */
if (TARGET_COLDFIRE)
{
if (big)
@ -1662,7 +1659,7 @@ const_method (rtx constant)
return MOVQ;
/* The ColdFire doesn't have byte or word operations. */
/* FIXME: This may not be useful for the m68060 either */
/* FIXME: This may not be useful for the m68060 either. */
if (!TARGET_COLDFIRE)
{
/* if -256 < N < 256 but N is not in range for a moveq