Commit df45c7ea by Kaveh R. Ghazi Committed by Kaveh Ghazi

alpha.c (alpha_cpu_name, [...]): Add the `const' keyword.

        * alpha.c (alpha_cpu_name, alpha_cpu_string, alpha_tp_string,
        alpha_fprm_string, alpha_fptm_string, alpha_mlat_string,
        current_function_file): Add the `const' keyword.
        (normal_memory_operand): Mark parameter `mode' with
        ATTRIBUTE_UNUSED.
        (alpha_expand_unaligned_load): Add a default case to a switch.
        * alpha.h (alpha_cpu_string, alpha_fprm_string, alpha_fptm_string,
        alpha_tp_string, alpha_mlat_string): Add the `const' keyword.
        (normal_memory_operand): Add prototype.
        * alpha.md: Cast an expression to `unsigned HOST_WIDE_INT' when
        comparing against one.

From-SVN: r25532
parent e2fe6aba
Tue Mar 2 10:12:48 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* alpha.c (alpha_cpu_name, alpha_cpu_string, alpha_tp_string,
alpha_fprm_string, alpha_fptm_string, alpha_mlat_string,
current_function_file): Add the `const' keyword.
(normal_memory_operand): Mark parameter `mode' with
ATTRIBUTE_UNUSED.
(alpha_expand_unaligned_load): Add a default case to a switch.
* alpha.h (alpha_cpu_string, alpha_fprm_string, alpha_fptm_string,
alpha_tp_string, alpha_mlat_string): Add the `const' keyword.
(normal_memory_operand): Add prototype.
* alpha.md: Cast an expression to `unsigned HOST_WIDE_INT' when
comparing against one.
Tue Mar 2 10:00:21 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> Tue Mar 2 10:00:21 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* mips.c (abort_with_insn): Make function static, add a prototype, * mips.c (abort_with_insn): Make function static, add a prototype,
......
...@@ -49,7 +49,7 @@ extern int rtx_equal_function_value_matters; ...@@ -49,7 +49,7 @@ extern int rtx_equal_function_value_matters;
/* Specify which cpu to schedule for. */ /* Specify which cpu to schedule for. */
enum processor_type alpha_cpu; enum processor_type alpha_cpu;
static char* const alpha_cpu_name[] = static const char * const alpha_cpu_name[] =
{ {
"ev4", "ev5", "ev6" "ev4", "ev5", "ev6"
}; };
...@@ -68,11 +68,11 @@ enum alpha_fp_trap_mode alpha_fptm; ...@@ -68,11 +68,11 @@ enum alpha_fp_trap_mode alpha_fptm;
/* Strings decoded into the above options. */ /* Strings decoded into the above options. */
char *alpha_cpu_string; /* -mcpu= */ const char *alpha_cpu_string; /* -mcpu= */
char *alpha_tp_string; /* -mtrap-precision=[p|s|i] */ const char *alpha_tp_string; /* -mtrap-precision=[p|s|i] */
char *alpha_fprm_string; /* -mfp-rounding-mode=[n|m|c|d] */ const char *alpha_fprm_string; /* -mfp-rounding-mode=[n|m|c|d] */
char *alpha_fptm_string; /* -mfp-trap-mode=[n|u|su|sui] */ const char *alpha_fptm_string; /* -mfp-trap-mode=[n|u|su|sui] */
char *alpha_mlat_string; /* -mmemory-latency= */ const char *alpha_mlat_string; /* -mmemory-latency= */
/* Save information from a "cmpxx" operation until the branch or scc is /* Save information from a "cmpxx" operation until the branch or scc is
emitted. */ emitted. */
...@@ -856,7 +856,7 @@ reg_not_elim_operand (op, mode) ...@@ -856,7 +856,7 @@ reg_not_elim_operand (op, mode)
int int
normal_memory_operand (op, mode) normal_memory_operand (op, mode)
register rtx op; register rtx op;
enum machine_mode mode; enum machine_mode mode ATTRIBUTE_UNUSED;
{ {
if (reload_in_progress && GET_CODE (op) == REG if (reload_in_progress && GET_CODE (op) == REG
&& REGNO (op) >= FIRST_PSEUDO_REGISTER) && REGNO (op) >= FIRST_PSEUDO_REGISTER)
...@@ -1576,6 +1576,8 @@ alpha_expand_unaligned_load (tgt, mem, size, ofs, sign) ...@@ -1576,6 +1576,8 @@ alpha_expand_unaligned_load (tgt, mem, size, ofs, sign)
emit_insn (gen_extqh (exth, memh, addr)); emit_insn (gen_extqh (exth, memh, addr));
mode = DImode; mode = DImode;
break; break;
default:
abort();
} }
addr = expand_binop (mode, ior_optab, gen_lowpart (mode, extl), addr = expand_binop (mode, ior_optab, gen_lowpart (mode, extl),
...@@ -3958,7 +3960,7 @@ static int num_source_filenames = 0; ...@@ -3958,7 +3960,7 @@ static int num_source_filenames = 0;
/* Name of the file containing the current function. */ /* Name of the file containing the current function. */
static char *current_function_file = ""; static const char *current_function_file = "";
/* Offsets to alpha virtual arg/local debugging pointers. */ /* Offsets to alpha virtual arg/local debugging pointers. */
......
...@@ -233,11 +233,11 @@ extern enum alpha_fp_trap_mode alpha_fptm; ...@@ -233,11 +233,11 @@ extern enum alpha_fp_trap_mode alpha_fptm;
extern char *m88k_short_data; extern char *m88k_short_data;
#define TARGET_OPTIONS { { "short-data-", &m88k_short_data } } */ #define TARGET_OPTIONS { { "short-data-", &m88k_short_data } } */
extern char *alpha_cpu_string; /* For -mcpu= */ extern const char *alpha_cpu_string; /* For -mcpu= */
extern char *alpha_fprm_string; /* For -mfp-rounding-mode=[n|m|c|d] */ extern const char *alpha_fprm_string; /* For -mfp-rounding-mode=[n|m|c|d] */
extern char *alpha_fptm_string; /* For -mfp-trap-mode=[n|u|su|sui] */ extern const char *alpha_fptm_string; /* For -mfp-trap-mode=[n|u|su|sui] */
extern char *alpha_tp_string; /* For -mtrap-precision=[p|f|i] */ extern const char *alpha_tp_string; /* For -mtrap-precision=[p|f|i] */
extern char *alpha_mlat_string; /* For -mmemory-latency= */ extern const char *alpha_mlat_string; /* For -mmemory-latency= */
#define TARGET_OPTIONS \ #define TARGET_OPTIONS \
{ \ { \
...@@ -783,6 +783,7 @@ enum reg_class { NO_REGS, GENERAL_REGS, FLOAT_REGS, ALL_REGS, ...@@ -783,6 +783,7 @@ enum reg_class { NO_REGS, GENERAL_REGS, FLOAT_REGS, ALL_REGS,
: (C) == 'S' ? (GET_CODE (OP) == CONST_INT \ : (C) == 'S' ? (GET_CODE (OP) == CONST_INT \
&& (unsigned HOST_WIDE_INT) INTVAL (OP) < 64) \ && (unsigned HOST_WIDE_INT) INTVAL (OP) < 64) \
: 0) : 0)
extern int normal_memory_operand ();
/* Given an rtx X being reloaded into a reg required to be /* Given an rtx X being reloaded into a reg required to be
in class CLASS, return the class of reg to actually use. in class CLASS, return the class of reg to actually use.
......
...@@ -1691,22 +1691,22 @@ ...@@ -1691,22 +1691,22 @@
"HOST_BITS_PER_WIDE_INT == 64 "HOST_BITS_PER_WIDE_INT == 64
&& GET_CODE (operands[3]) == CONST_INT && GET_CODE (operands[3]) == CONST_INT
&& (((unsigned HOST_WIDE_INT) 0xff << INTVAL (operands[2]) && (((unsigned HOST_WIDE_INT) 0xff << INTVAL (operands[2])
== INTVAL (operands[3])) == (unsigned HOST_WIDE_INT) INTVAL (operands[3]))
|| ((unsigned HOST_WIDE_INT) 0xffff << INTVAL (operands[2]) || ((unsigned HOST_WIDE_INT) 0xffff << INTVAL (operands[2])
== INTVAL (operands[3])) == (unsigned HOST_WIDE_INT) INTVAL (operands[3]))
|| ((unsigned HOST_WIDE_INT) 0xffffffff << INTVAL (operands[2]) || ((unsigned HOST_WIDE_INT) 0xffffffff << INTVAL (operands[2])
== INTVAL (operands[3])))" == (unsigned HOST_WIDE_INT) INTVAL (operands[3])))"
"* "*
{ {
#if HOST_BITS_PER_WIDE_INT == 64 #if HOST_BITS_PER_WIDE_INT == 64
if ((unsigned HOST_WIDE_INT) 0xff << INTVAL (operands[2]) if ((unsigned HOST_WIDE_INT) 0xff << INTVAL (operands[2])
== INTVAL (operands[3])) == (unsigned HOST_WIDE_INT) INTVAL (operands[3]))
return \"insbl %1,%s2,%0\"; return \"insbl %1,%s2,%0\";
if ((unsigned HOST_WIDE_INT) 0xffff << INTVAL (operands[2]) if ((unsigned HOST_WIDE_INT) 0xffff << INTVAL (operands[2])
== INTVAL (operands[3])) == (unsigned HOST_WIDE_INT) INTVAL (operands[3]))
return \"inswl %1,%s2,%0\"; return \"inswl %1,%s2,%0\";
if ((unsigned HOST_WIDE_INT) 0xffffffff << INTVAL (operands[2]) if ((unsigned HOST_WIDE_INT) 0xffffffff << INTVAL (operands[2])
== INTVAL (operands[3])) == (unsigned HOST_WIDE_INT) INTVAL (operands[3]))
return \"insll %1,%s2,%0\"; return \"insll %1,%s2,%0\";
#endif #endif
abort(); abort();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment