diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c8d660cceec..515710d4d3c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2001-10-11 Zack Weinberg + + * cpplex.c (digraph_spellings, token_spellings): Make static. + 2001-10-11 Franz Sirl * unroll.c (loop_iterations): Fixup last patch. diff --git a/gcc/cpplex.c b/gcc/cpplex.c index 3ea32612d24..47a5c05a958 100644 --- a/gcc/cpplex.c +++ b/gcc/cpplex.c @@ -69,12 +69,12 @@ struct token_spelling const unsigned char *name; }; -const unsigned char *digraph_spellings [] = {U"%:", U"%:%:", U"<:", - U":>", U"<%", U"%>"}; +static const unsigned char *const digraph_spellings[] = +{ U"%:", U"%:%:", U"<:", U":>", U"<%", U"%>" }; #define OP(e, s) { SPELL_OPERATOR, U s }, #define TK(e, s) { s, U STRINGX (e) }, -const struct token_spelling token_spellings [N_TTYPES] = {TTYPE_TABLE }; +static const struct token_spelling token_spellings[N_TTYPES] = { TTYPE_TABLE }; #undef OP #undef TK