diff options
author | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-01-02 23:18:59 +0000 |
---|---|---|
committer | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-01-02 23:18:59 +0000 |
commit | c077395fb2d27d95fcc1d3fd1c7a4f3ea147730a (patch) | |
tree | 1b3ba80e154ddb807e8dfcaefbbd0018b015a992 /gcc/mips-tfile.c | |
parent | 507293cace2d89fea75b8882c57502c6efbd0954 (diff) | |
download | gcc-c077395fb2d27d95fcc1d3fd1c7a4f3ea147730a.tar.gz |
* gcc.c (default_compilers): Const-ify.
* mips-tdump.c (stab_names): Likewise.
* mips-tfile.c (map_coff_types, map_coff_storage,
map_coff_sym_type, map_coff_derived_type, stabs_symbol,
pseudo_ops_t, pseudo_ops): Likewise.
* protoize.c (default_include): Likewise
f:
* com.c (clear_binding_level): Const-ify.
(ffecom_arglist_expr_): Likewise.
* info.c (ffeinfo_types_): Don't needlessly zero init.
* lex.c (ffelex_hash_kludge): Const-ify.
java:
* parse.y (src_parse_roots): Don't needlessly zero init.
libiberty:
* cp-demangle.c (long_options): Const-ify.
* cplus-dem.c (long_options): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@48485 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/mips-tfile.c')
-rw-r--r-- | gcc/mips-tfile.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/gcc/mips-tfile.c b/gcc/mips-tfile.c index 167742a6052..9e49713302e 100644 --- a/gcc/mips-tfile.c +++ b/gcc/mips-tfile.c @@ -1273,7 +1273,7 @@ static EXTR *last_func_eptr; Maybe this will be fixed in 2.10 or 2.20 of the MIPS compiler suite, but for now go with what works. */ -static bt_t map_coff_types[ (int)T_MAX ] = { +static const bt_t map_coff_types[ (int)T_MAX ] = { bt_Nil, /* T_NULL */ bt_Nil, /* T_ARG */ bt_Char, /* T_CHAR */ @@ -1293,7 +1293,7 @@ static bt_t map_coff_types[ (int)T_MAX ] = { }; /* Convert COFF storage class to ECOFF storage class. */ -static sc_t map_coff_storage[ (int)C_MAX ] = { +static const sc_t map_coff_storage[ (int)C_MAX ] = { sc_Nil, /* 0: C_NULL */ sc_Abs, /* 1: C_AUTO auto var */ sc_Undefined, /* 2: C_EXT external */ @@ -1404,7 +1404,7 @@ static sc_t map_coff_storage[ (int)C_MAX ] = { }; /* Convert COFF storage class to ECOFF symbol type. */ -static st_t map_coff_sym_type[ (int)C_MAX ] = { +static const st_t map_coff_sym_type[ (int)C_MAX ] = { st_Nil, /* 0: C_NULL */ st_Local, /* 1: C_AUTO auto var */ st_Global, /* 2: C_EXT external */ @@ -1515,7 +1515,7 @@ static st_t map_coff_sym_type[ (int)C_MAX ] = { }; /* Map COFF derived types to ECOFF type qualifiers. */ -static tq_t map_coff_derived_type[ (int)DT_MAX ] = { +static const tq_t map_coff_derived_type[ (int)DT_MAX ] = { tq_Nil, /* 0: DT_NON no more qualifiers */ tq_Ptr, /* 1: DT_PTR pointer */ tq_Proc, /* 2: DT_FCN function */ @@ -1594,7 +1594,7 @@ static int stabs_seen = 0; /* != 0 if stabs have been seen */ #define STABS_SYMBOL "@stabs" #endif -static char stabs_symbol[] = STABS_SYMBOL; +static const char stabs_symbol[] = STABS_SYMBOL; /* Forward reference for functions. See the definition for more details. */ @@ -1715,12 +1715,12 @@ extern int opterr; do...... */ typedef struct _pseudo_ops { - const char *name; /* pseudo-op in ascii */ - int len; /* length of name to compare */ - void (*func) PARAMS ((const char *)); /* function to handle line */ + const char *const name; /* pseudo-op in ascii */ + const int len; /* length of name to compare */ + void (*const func) PARAMS ((const char *)); /* function to handle line */ } pseudo_ops_t; -static pseudo_ops_t pseudo_ops[] = { +static const pseudo_ops_t pseudo_ops[] = { { "#.def", sizeof("#.def")-1, parse_def }, { "#.begin", sizeof("#.begin")-1, parse_begin }, { "#.bend", sizeof("#.bend")-1, parse_bend }, |