+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>
* configure.in: Fix typo for "-64" in 64bit as check.
extern void split_di PROTO((rtx[], int, rtx[], rtx[]));
-extern char *output_387_binary_op PROTO((rtx, rtx*));
-extern char *output_fix_trunc PROTO((rtx, rtx*));
-extern char *output_fp_compare PROTO((rtx, rtx*, int, int));
+extern const char *output_387_binary_op PROTO((rtx, rtx*));
+extern const char *output_fix_trunc PROTO((rtx, rtx*));
+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_binary_operator PROTO((enum rtx_code,
rtx));
static void ix86_init_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
{
static struct pta
{
- char *name; /* processor name or nickname. */
+ const char *name; /* processor name or nickname. */
enum processor_type processor;
}
const processor_alias_table[] =
tree type2;
{
/* 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)
return 1;
/* No `byte ptr' prefix for call instructions. */
if (ASSEMBLER_DIALECT != 0 && code != 'X' && code != 'P')
{
- char * size;
+ const char * size;
switch (GET_MODE_SIZE (GET_MODE (x)))
{
case 1: size = "BYTE"; break;
There is no guarantee that the operands are the same mode, as they
might be within FLOAT or FLOAT_EXTEND expressions. */
-char *
+const char *
output_387_binary_op (insn, operands)
rtx insn;
rtx *operands;
{
static char buf[100];
rtx temp;
- char *p;
+ const char *p;
switch (GET_CODE (operands[3]))
{
are the insn operands. The output may be [SD]Imode and the input
operand may be [SDX]Fmode. */
-char *
+const char *
output_fix_trunc (insn, operands)
rtx insn;
rtx *operands;
should be used and 2 when fnstsw should be used. UNORDERED_P is true
when fucom should be used. */
-char *
+const char *
output_fp_compare (insn, operands, eflags_p, unordered_p)
rtx insn;
rtx *operands;
{
/* 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",
"fcomp%z1\t%y1",
};
int mask;
- char *ret;
+ const char *ret;
mask = eflags_p << 3;
mask |= (GET_MODE_CLASS (GET_MODE (operands[1])) == MODE_INT) << 2;
FILE *dump ATTRIBUTE_UNUSED;
int sched_verbose ATTRIBUTE_UNUSED;
rtx *ready;
- int n_ready, clock_var;
+ int n_ready, clock_var ATTRIBUTE_UNUSED;
{
rtx *e_ready = ready + n_ready - 1;
rtx *insnp;
programs that are not linked with aux-output.o. */
#define DEBUG_PRINT_REG(X, CODE, FILE) \
- do { static char *hi_name[] = HI_REGISTER_NAMES; \
- static char *qi_name[] = QI_REGISTER_NAMES; \
+ do { static const char * const hi_name[] = HI_REGISTER_NAMES; \
+ static const char * const qi_name[] = QI_REGISTER_NAMES; \
fprintf (FILE, "%d ", REGNO (X)); \
if (REGNO (X) == FLAGS_REG) \
{ fputs ("flags", FILE); break; } \