diff options
| author | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-01-05 04:37:08 +0000 |
|---|---|---|
| committer | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-01-05 04:37:08 +0000 |
| commit | fd956ee48cdab1f6637555c480bd0b962513fab2 (patch) | |
| tree | 6d00322a1bf823cb1620fb7bd7ed6fea6f7aa725 | |
| parent | ed0ded3b5a06f291b2565b0e5a27c0a9fb95a782 (diff) | |
| download | ppe42-gcc-fd956ee48cdab1f6637555c480bd0b962513fab2.tar.gz ppe42-gcc-fd956ee48cdab1f6637555c480bd0b962513fab2.zip | |
* Makefile.in (gtyp-gen.h): Const-ify.
* gcov-dump.c (tag_table): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@60898 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/ChangeLog | 5 | ||||
| -rw-r--r-- | gcc/Makefile.in | 10 | ||||
| -rw-r--r-- | gcc/gcov-dump.c | 2 |
3 files changed, 11 insertions, 6 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3de1fc84ad9..c1e6b5279ec 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2003-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> + + * Makefile.in (gtyp-gen.h): Const-ify. + * gcov-dump.c (tag_table): Likewise. + 2003-01-04 Bruce Korb <bkorb@gnu.org> * fixinc/fixfixes.c(wrap_fix): the wrapper guard must be a function diff --git a/gcc/Makefile.in b/gcc/Makefile.in index 4d3a24ffdaf..934dbe382d5 100644 --- a/gcc/Makefile.in +++ b/gcc/Makefile.in @@ -1894,25 +1894,25 @@ gt-c-objc-common.h gtype-c.h gt-location.h : s-gtype ; @true gtyp-gen.h: Makefile echo "/* This file is machine generated. Do not edit. */" > tmp-gtyp.h - echo "static const char *srcdir = " >> tmp-gtyp.h + echo "static const char *const srcdir = " >> tmp-gtyp.h echo "\"$(GTFILES_SRCDIR)\"" >> tmp-gtyp.h echo ";" >> tmp-gtyp.h - echo "static const char *lang_files[] = {" >> tmp-gtyp.h + echo "static const char *const lang_files[] = {" >> tmp-gtyp.h ll="$(GTFILES_FILES_FILES)"; \ for f in $$ll; do \ echo "\"$$f\", "; done >> tmp-gtyp.h echo "NULL};" >> tmp-gtyp.h - echo "static const char *langs_for_lang_files[] = {" >> tmp-gtyp.h + echo "static const char *const langs_for_lang_files[] = {" >> tmp-gtyp.h ff="$(GTFILES_FILES_LANGS)"; \ for f in $$ff; do \ echo "\"$$f\", " ; done >> tmp-gtyp.h echo "NULL};" >> tmp-gtyp.h - echo "static const char *all_files[] = {" >> tmp-gtyp.h + echo "static const char *const all_files[] = {" >> tmp-gtyp.h gf="$(GTFILES)"; \ for f in $$gf; do \ echo "\"$$f\", "; done >> tmp-gtyp.h echo " NULL};" >> tmp-gtyp.h - echo "static const char *lang_dir_names[] = { \"c\", " >> tmp-gtyp.h + echo "static const char *const lang_dir_names[] = { \"c\", " >> tmp-gtyp.h gf="$(GTFILES_LANG_DIR_NAMES)"; \ for l in $$gf; do \ echo "\"$$l\", "; done >> tmp-gtyp.h diff --git a/gcc/gcov-dump.c b/gcc/gcov-dump.c index 700f8661b19..4da05917e75 100644 --- a/gcc/gcov-dump.c +++ b/gcc/gcov-dump.c @@ -54,7 +54,7 @@ static const struct option options[] = { "long", no_argument, NULL, 'l' }, }; -static tag_format_t tag_table[] = +static const tag_format_t tag_table[] = { {0, "NOP", NULL}, {0, "UNKNOWN", NULL}, |

