From: Michael Hayes Date: Sun, 12 Sep 1999 10:24:02 +0000 (+0000) Subject: c4x.h (c4x_rpts_cycles_string, [...]): Constify char *. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ddf16f18413b904c1b524e9d385aabd394fa5d7b;p=gcc.git c4x.h (c4x_rpts_cycles_string, [...]): Constify char *. * config/c4x/c4x.h (c4x_rpts_cycles_string, c4x_cpu_version_string): Constify char *. * config/c4x/c4x.c (c4x_rpts_cycles_string, c4x_cpu_version_string): Likewise. From-SVN: r29357 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index da73161fe1b..28a5ebbd85a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +Sun Sep 12 22:05:21 1999 Michael Hayes + + * config/c4x/c4x.h (c4x_rpts_cycles_string, + c4x_cpu_version_string): Constify char *. + * config/c4x/c4x.c (c4x_rpts_cycles_string, + c4x_cpu_version_string): Likewise. + Sat Sep 11 23:28:33 1999 Richard Henderson * tree.c (save_tree_status): Revert 10 Sep change. diff --git a/gcc/config/c4x/c4x.c b/gcc/config/c4x/c4x.c index 58c214a07b8..7712695c910 100644 --- a/gcc/config/c4x/c4x.c +++ b/gcc/config/c4x/c4x.c @@ -135,9 +135,9 @@ enum machine_mode c4x_caller_save_map[FIRST_PSEUDO_REGISTER] = struct rtx_def *c4x_compare_op0 = NULL_RTX; struct rtx_def *c4x_compare_op1 = NULL_RTX; -char *c4x_rpts_cycles_string; +const char *c4x_rpts_cycles_string; int c4x_rpts_cycles = 0; /* Max. cycles for RPTS. */ -char *c4x_cpu_version_string; +const char *c4x_cpu_version_string; int c4x_cpu_version = 40; /* CPU version C30/31/32/40/44. */ /* Pragma definitions. */ diff --git a/gcc/config/c4x/c4x.h b/gcc/config/c4x/c4x.h index 7bc69ee4503..46e2d054e10 100644 --- a/gcc/config/c4x/c4x.h +++ b/gcc/config/c4x/c4x.h @@ -302,7 +302,7 @@ extern int target_flags; extern char *m88k_short_data; #define TARGET_OPTIONS { { "short-data-", &m88k_short_data } } */ -extern char *c4x_rpts_cycles_string, *c4x_cpu_version_string; +extern const char *c4x_rpts_cycles_string, *c4x_cpu_version_string; #define TARGET_OPTIONS \ { {"rpts=", &c4x_rpts_cycles_string, \ @@ -2554,7 +2554,7 @@ do { fprintf (asm_out_file, "\t.sdef\t"); \ #define DBR_OUTPUT_SEQEND(FILE) \ if (final_sequence != NULL_RTX) \ { \ - int count; + int count; \ int laj = GET_CODE (XVECEXP (final_sequence, 0, 0)) == CALL_INSN; \ \ count = dbr_sequence_length(); \