dsp16xx.c: Fix comment formatting to match GNU standards.
* dsp16xx.c: Fix comment formatting to match GNU standards. (dsp16xx_output_function_prologue): Change type of 'size' parameter from 'int' to HOST_WIDE_INT. (dsp16xx_output_function_epilogue): Change type of 'size' parameter from 'int' to HOST_WIDE_INT. From-SVN: r46305
This commit is contained in:
parent
33129152a0
commit
6b0880cb4e
|
@ -54,11 +54,11 @@ const char *chip_name;
|
|||
const char *save_chip_name;
|
||||
|
||||
/* Save the operands of a compare. The 16xx has not lt or gt, so
|
||||
in these cases we swap the operands and reverse the condition */
|
||||
in these cases we swap the operands and reverse the condition. */
|
||||
|
||||
rtx dsp16xx_compare_op0;
|
||||
rtx dsp16xx_compare_op1;
|
||||
struct rtx_def *(*dsp16xx_compare_gen)();
|
||||
rtx (*dsp16xx_compare_gen) PARAMS (());
|
||||
|
||||
static const char *fp;
|
||||
static const char *sp;
|
||||
|
@ -168,9 +168,8 @@ hard_regno_mode_ok (regno, mode)
|
|||
case VOIDmode:
|
||||
return 1;
|
||||
|
||||
/*
|
||||
We can't use the c0-c2 for QImode, since they are only
|
||||
8 bits in length */
|
||||
/* We can't use the c0-c2 for QImode, since they are only
|
||||
8 bits in length. */
|
||||
|
||||
case QImode:
|
||||
if (regno != REG_C0 && regno != REG_C1 && regno != REG_C2)
|
||||
|
@ -285,6 +284,7 @@ dsp16xx_reg_class_from_letter (c)
|
|||
return NO_REGS;
|
||||
}
|
||||
}
|
||||
|
||||
/* Return the class number of the smallest class containing
|
||||
reg number REGNO. */
|
||||
|
||||
|
@ -359,7 +359,7 @@ regno_reg_class(regno)
|
|||
}
|
||||
|
||||
/* A C expression for the maximum number of consecutive registers of class CLASS
|
||||
needed to hold a value of mode MODE */
|
||||
needed to hold a value of mode MODE. */
|
||||
|
||||
int
|
||||
class_max_nregs(class, mode)
|
||||
|
@ -494,7 +494,7 @@ preferred_reload_class (x, class)
|
|||
}
|
||||
|
||||
/* If x is not an accumulator or a ybase register, restrict the class of registers
|
||||
we can copy the register into */
|
||||
we can copy the register into. */
|
||||
|
||||
if (REG_P (x) && !IS_ACCUM_REG (REGNO (x)) && !IS_YBASE_REGISTER_WINDOW (REGNO (x)))
|
||||
{
|
||||
|
@ -687,7 +687,7 @@ preferred_reload_class (x, class)
|
|||
}
|
||||
|
||||
/* If x (the input) is a ybase register, restrict the class of registers
|
||||
we can copy the register into */
|
||||
we can copy the register into. */
|
||||
|
||||
if (REG_P (x) && !TARGET_RESERVE_YBASE
|
||||
&& IS_YBASE_REGISTER_WINDOW (REGNO(x)))
|
||||
|
@ -795,7 +795,7 @@ preferred_reload_class (x, class)
|
|||
return class;
|
||||
|
||||
/* If the accumulators are not part of the class
|
||||
being reloaded into, return NO_REGS */
|
||||
being reloaded into, return NO_REGS. */
|
||||
#if 0
|
||||
if (!reg_class_subset_p (ACCUM_REGS, class))
|
||||
return (!reload_in_progress ? NO_REGS : class);
|
||||
|
@ -824,7 +824,7 @@ preferred_reload_class (x, class)
|
|||
else if (GET_CODE (x) == MEM)
|
||||
{
|
||||
/* We can't copy from a memory location into a
|
||||
ybase register */
|
||||
ybase register. */
|
||||
if (reg_class_subset_p(YBASE_VIRT_REGS, class))
|
||||
{
|
||||
switch ((int) class)
|
||||
|
@ -896,7 +896,7 @@ secondary_reload_class (class, mode, in)
|
|||
|
||||
/* If we are reloading a plus into a high accumulator register,
|
||||
we need a scratch low accumulator, because the low half gets
|
||||
clobbered */
|
||||
clobbered. */
|
||||
|
||||
if (class == ACCUM_HIGH_REGS
|
||||
|| class == A1H_REG
|
||||
|
@ -1056,7 +1056,7 @@ secondary_reload_class (class, mode, in)
|
|||
}
|
||||
|
||||
/* Memory or constants can be moved from or to any register
|
||||
except the ybase virtual registers */
|
||||
except the ybase virtual registers. */
|
||||
if (regno == -1 && GET_CODE(in) != PLUS)
|
||||
{
|
||||
if (class == YBASE_VIRT_REGS)
|
||||
|
@ -1117,7 +1117,7 @@ symbolic_address_p (op)
|
|||
|
||||
/* For a Y address space operand we allow only *rn, *rn++, *rn--.
|
||||
This routine only recognizes *rn, the '<>' constraints recognize
|
||||
*rn++, *rn-- */
|
||||
(*rn++), and (*rn--). */
|
||||
|
||||
int
|
||||
Y_address_operand (op, mode)
|
||||
|
@ -1260,7 +1260,7 @@ notice_update_cc(exp)
|
|||
case MINUS:
|
||||
if (REG_P (SET_DEST (exp)))
|
||||
{
|
||||
/* Address registers don't set the condition codes */
|
||||
/* Address registers don't set the condition codes. */
|
||||
if (IS_ADDRESS_REGISTER (REGNO (SET_DEST (exp))))
|
||||
{
|
||||
CC_STATUS_INIT;
|
||||
|
@ -1331,7 +1331,7 @@ compute_frame_size (size)
|
|||
long extra_size;
|
||||
long reg_size;
|
||||
|
||||
/* This value is needed to compute reg_size */
|
||||
/* This value is needed to compute reg_size. */
|
||||
current_frame_info.function_makes_calls = !leaf_function_p ();
|
||||
|
||||
reg_size = 0;
|
||||
|
@ -1362,12 +1362,14 @@ compute_frame_size (size)
|
|||
return total_size;
|
||||
}
|
||||
|
||||
int frame_size()
|
||||
int
|
||||
frame_size ()
|
||||
{
|
||||
return (int) compute_frame_size(get_frame_size());
|
||||
}
|
||||
|
||||
int frame_pointer_offset()
|
||||
int
|
||||
frame_pointer_offset ()
|
||||
{
|
||||
if (!leaf_function_p())
|
||||
return (-(current_function_outgoing_args_size + 1));
|
||||
|
@ -1406,7 +1408,7 @@ ybase_regs_ever_used ()
|
|||
void
|
||||
dsp16xx_output_function_prologue (file, size)
|
||||
FILE *file;
|
||||
int size;
|
||||
HOST_WIDE_INT size;
|
||||
{
|
||||
int regno;
|
||||
long total_size;
|
||||
|
@ -1454,8 +1456,7 @@ dsp16xx_output_function_prologue (file, size)
|
|||
}
|
||||
|
||||
/* Save any registers this function uses, unless they are
|
||||
* used in a call, in which case we don't need to
|
||||
*/
|
||||
used in a call, in which case we don't need to. */
|
||||
|
||||
for(regno = 0; regno < FIRST_PSEUDO_REGISTER; ++ regno)
|
||||
if (dsp16xx_call_saved_register (regno))
|
||||
|
@ -1464,7 +1465,7 @@ dsp16xx_output_function_prologue (file, size)
|
|||
}
|
||||
|
||||
/* For debugging purposes, we want the return address to be at a predictable
|
||||
location */
|
||||
location. */
|
||||
if (current_frame_info.function_makes_calls)
|
||||
fprintf (file, "\tpush(*%s)=%s\n", sp, reg_names[RETURN_ADDRESS_REGNUM]);
|
||||
|
||||
|
@ -1517,7 +1518,7 @@ init_emulation_routines ()
|
|||
void
|
||||
dsp16xx_output_function_epilogue (file, size)
|
||||
FILE *file;
|
||||
int size ATTRIBUTE_UNUSED;
|
||||
HOST_WIDE_INT size ATTRIBUTE_UNUSED;
|
||||
{
|
||||
int regno;
|
||||
|
||||
|
@ -1570,7 +1571,7 @@ dsp16xx_output_function_epilogue (file, size)
|
|||
}
|
||||
|
||||
fprintf (file, "\treturn\n");
|
||||
/* Reset the frame info for the next function */
|
||||
/* Reset the frame info for the next function. */
|
||||
current_frame_info = zero_frame_info;
|
||||
init_emulation_routines ();
|
||||
}
|
||||
|
@ -1851,7 +1852,7 @@ print_operand(file, op, letter)
|
|||
|
||||
if (code == REG)
|
||||
{
|
||||
/* Print the low half of a 32-bit register pair */
|
||||
/* Print the low half of a 32-bit register pair. */
|
||||
if (letter == 'w')
|
||||
fprintf (file, "%s", reg_names[REGNO (op) + 1]);
|
||||
else if (letter == 'u' || !letter)
|
||||
|
@ -2008,7 +2009,7 @@ reg_save_size ()
|
|||
reg_save_size += UNITS_PER_WORD;
|
||||
}
|
||||
|
||||
/* If the function makes calls we will save need to save the 'pr' register */
|
||||
/* If the function makes calls we will save need to save the 'pr' register. */
|
||||
if (current_frame_info.function_makes_calls)
|
||||
reg_save_size += 1;
|
||||
|
||||
|
@ -2398,8 +2399,7 @@ dsp16xx_address_cost (addr)
|
|||
passed in registers, we first load the structure into the
|
||||
register, and then when the last argument is passed, we store
|
||||
the registers into the stack locations. This fixes some bugs
|
||||
where GCC did not expect to have register arguments, followed */
|
||||
|
||||
where GCC did not expect to have register arguments, followed. */
|
||||
|
||||
struct rtx_def *
|
||||
dsp16xx_function_arg (args_so_far, mode, type, named)
|
||||
|
@ -2487,8 +2487,7 @@ luxworks_dsp16xx_file_start (file)
|
|||
* object code. These have been created so that the number and
|
||||
* type of sections remain consistent with and without -g option. Note
|
||||
* that the .data, .text, .const and .bss are always created when -g
|
||||
* is provided as an option.
|
||||
*/
|
||||
* is provided as an option. */
|
||||
fprintf (file, "\t.rsect \".text\" , nodelete\n");
|
||||
fprintf (file, "\t.rsect \".data\" , nodelete\n");
|
||||
fprintf (file, "\t.rsect \".const\" , nodelete\n");
|
||||
|
|
Loading…
Reference in New Issue