i386-protos.h (output_387_binary_op, [...]): Constify a char*.

* i386-protos.h (output_387_binary_op, output_fix_trunc,
	output_fp_compare): Constify a char*.

	* i386.c (ix86_split_to_parts, ix86_safe_length_prefix): Add
	static prototypes.
	(override_options, ix86_comp_type_attributes, print_operand,
	output_387_binary_op, output_fix_trunc, output_fp_compare):
	Constify a char*.
	(ix86_sched_reorder): Mark parameter `clock_var' with
	ATTRIBUTE_UNUSED.

	* i386.h (DEBUG_PRINT_REG): Constify a char*.

From-SVN: r30869
This commit is contained in:
Kaveh R. Ghazi 1999-12-12 01:06:29 +00:00 committed by Kaveh Ghazi
parent 486837a79c
commit 69ddee6157
4 changed files with 32 additions and 15 deletions

View File

@ -1,3 +1,18 @@
1999-12-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* i386-protos.h (output_387_binary_op, output_fix_trunc,
output_fp_compare): Constify a char*.
* i386.c (ix86_split_to_parts, ix86_safe_length_prefix): Add
static prototypes.
(override_options, ix86_comp_type_attributes, print_operand,
output_387_binary_op, output_fix_trunc, output_fp_compare):
Constify a char*.
(ix86_sched_reorder): Mark parameter `clock_var' with
ATTRIBUTE_UNUSED.
* i386.h (DEBUG_PRINT_REG): Constify a char*.
1999-12-10 Ben Collins <bcollins@debian.org> 1999-12-10 Ben Collins <bcollins@debian.org>
* configure.in: Fix typo for "-64" in 64bit as check. * configure.in: Fix typo for "-64" in 64bit as check.

View File

@ -76,9 +76,9 @@ extern void print_operand_address PROTO((FILE*, rtx));
extern void split_di PROTO((rtx[], int, rtx[], rtx[])); extern void split_di PROTO((rtx[], int, rtx[], rtx[]));
extern char *output_387_binary_op PROTO((rtx, rtx*)); extern const char *output_387_binary_op PROTO((rtx, rtx*));
extern char *output_fix_trunc PROTO((rtx, rtx*)); extern const char *output_fix_trunc PROTO((rtx, rtx*));
extern char *output_fp_compare PROTO((rtx, rtx*, int, int)); extern const char *output_fp_compare PROTO((rtx, rtx*, int, int));
extern void ix86_expand_move PROTO((enum machine_mode, rtx[])); extern void ix86_expand_move PROTO((enum machine_mode, rtx[]));
extern void ix86_expand_binary_operator PROTO((enum rtx_code, extern void ix86_expand_binary_operator PROTO((enum rtx_code,

View File

@ -315,6 +315,8 @@ static rtx * ix86_pent_find_pair PROTO ((rtx *, rtx *, enum attr_pent_pair,
rtx)); rtx));
static void ix86_init_machine_status PROTO ((struct function *)); static void ix86_init_machine_status PROTO ((struct function *));
static void ix86_mark_machine_status PROTO ((struct function *)); static void ix86_mark_machine_status PROTO ((struct function *));
static void ix86_split_to_parts PROTO ((rtx, rtx *, enum machine_mode));
static int ix86_safe_length_prefix PROTO ((rtx));
struct ix86_address struct ix86_address
{ {
@ -361,7 +363,7 @@ override_options ()
static struct pta static struct pta
{ {
char *name; /* processor name or nickname. */ const char *name; /* processor name or nickname. */
enum processor_type processor; enum processor_type processor;
} }
const processor_alias_table[] = const processor_alias_table[] =
@ -718,7 +720,7 @@ ix86_comp_type_attributes (type1, type2)
tree type2; tree type2;
{ {
/* Check for mismatch of non-default calling convention. */ /* Check for mismatch of non-default calling convention. */
char *rtdstr = TARGET_RTD ? "cdecl" : "stdcall"; const char *rtdstr = TARGET_RTD ? "cdecl" : "stdcall";
if (TREE_CODE (type1) != FUNCTION_TYPE) if (TREE_CODE (type1) != FUNCTION_TYPE)
return 1; return 1;
@ -2830,7 +2832,7 @@ print_operand (file, x, code)
/* No `byte ptr' prefix for call instructions. */ /* No `byte ptr' prefix for call instructions. */
if (ASSEMBLER_DIALECT != 0 && code != 'X' && code != 'P') if (ASSEMBLER_DIALECT != 0 && code != 'X' && code != 'P')
{ {
char * size; const char * size;
switch (GET_MODE_SIZE (GET_MODE (x))) switch (GET_MODE_SIZE (GET_MODE (x)))
{ {
case 1: size = "BYTE"; break; case 1: size = "BYTE"; break;
@ -3073,14 +3075,14 @@ split_di (operands, num, lo_half, hi_half)
There is no guarantee that the operands are the same mode, as they There is no guarantee that the operands are the same mode, as they
might be within FLOAT or FLOAT_EXTEND expressions. */ might be within FLOAT or FLOAT_EXTEND expressions. */
char * const char *
output_387_binary_op (insn, operands) output_387_binary_op (insn, operands)
rtx insn; rtx insn;
rtx *operands; rtx *operands;
{ {
static char buf[100]; static char buf[100];
rtx temp; rtx temp;
char *p; const char *p;
switch (GET_CODE (operands[3])) switch (GET_CODE (operands[3]))
{ {
@ -3218,7 +3220,7 @@ output_387_binary_op (insn, operands)
are the insn operands. The output may be [SD]Imode and the input are the insn operands. The output may be [SD]Imode and the input
operand may be [SDX]Fmode. */ operand may be [SDX]Fmode. */
char * const char *
output_fix_trunc (insn, operands) output_fix_trunc (insn, operands)
rtx insn; rtx insn;
rtx *operands; rtx *operands;
@ -3277,7 +3279,7 @@ output_fix_trunc (insn, operands)
should be used and 2 when fnstsw should be used. UNORDERED_P is true should be used and 2 when fnstsw should be used. UNORDERED_P is true
when fucom should be used. */ when fucom should be used. */
char * const char *
output_fp_compare (insn, operands, eflags_p, unordered_p) output_fp_compare (insn, operands, eflags_p, unordered_p)
rtx insn; rtx insn;
rtx *operands; rtx *operands;
@ -3339,7 +3341,7 @@ output_fp_compare (insn, operands, eflags_p, unordered_p)
{ {
/* Encoded here as eflags_p | intmode | unordered_p | stack_top_dies. */ /* Encoded here as eflags_p | intmode | unordered_p | stack_top_dies. */
static char * const alt[24] = static const char * const alt[24] =
{ {
"fcom%z1\t%y1", "fcom%z1\t%y1",
"fcomp%z1\t%y1", "fcomp%z1\t%y1",
@ -3373,7 +3375,7 @@ output_fp_compare (insn, operands, eflags_p, unordered_p)
}; };
int mask; int mask;
char *ret; const char *ret;
mask = eflags_p << 3; mask = eflags_p << 3;
mask |= (GET_MODE_CLASS (GET_MODE (operands[1])) == MODE_INT) << 2; mask |= (GET_MODE_CLASS (GET_MODE (operands[1])) == MODE_INT) << 2;
@ -5869,7 +5871,7 @@ ix86_sched_reorder (dump, sched_verbose, ready, n_ready, clock_var)
FILE *dump ATTRIBUTE_UNUSED; FILE *dump ATTRIBUTE_UNUSED;
int sched_verbose ATTRIBUTE_UNUSED; int sched_verbose ATTRIBUTE_UNUSED;
rtx *ready; rtx *ready;
int n_ready, clock_var; int n_ready, clock_var ATTRIBUTE_UNUSED;
{ {
rtx *e_ready = ready + n_ready - 1; rtx *e_ready = ready + n_ready - 1;
rtx *insnp; rtx *insnp;

View File

@ -2371,8 +2371,8 @@ do { long l; \
programs that are not linked with aux-output.o. */ programs that are not linked with aux-output.o. */
#define DEBUG_PRINT_REG(X, CODE, FILE) \ #define DEBUG_PRINT_REG(X, CODE, FILE) \
do { static char *hi_name[] = HI_REGISTER_NAMES; \ do { static const char * const hi_name[] = HI_REGISTER_NAMES; \
static char *qi_name[] = QI_REGISTER_NAMES; \ static const char * const qi_name[] = QI_REGISTER_NAMES; \
fprintf (FILE, "%d ", REGNO (X)); \ fprintf (FILE, "%d ", REGNO (X)); \
if (REGNO (X) == FLAGS_REG) \ if (REGNO (X) == FLAGS_REG) \
{ fputs ("flags", FILE); break; } \ { fputs ("flags", FILE); break; } \