diff options
| author | m.hayes <m.hayes@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-03-06 20:59:16 +0000 |
|---|---|---|
| committer | m.hayes <m.hayes@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-03-06 20:59:16 +0000 |
| commit | dc9a8d76fa06d1cee93a4bda5ba5616bbceb6139 (patch) | |
| tree | 7534857a4247c77d5936647b8fe31872090687ba /gcc | |
| parent | 7bae5538d562b9e2917b4cada89b55deafe60982 (diff) | |
| download | ppe42-gcc-dc9a8d76fa06d1cee93a4bda5ba5616bbceb6139.tar.gz ppe42-gcc-dc9a8d76fa06d1cee93a4bda5ba5616bbceb6139.zip | |
* config/c4x/c4x-protos.h (c4x_global_name): Constify char *.
(c4x_external_ref): Likewise.
* config/c4x/c4x.c (struct name_list): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32370 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
| -rw-r--r-- | gcc/ChangeLog | 6 | ||||
| -rw-r--r-- | gcc/config/c4x/c4x-protos.h | 4 | ||||
| -rw-r--r-- | gcc/config/c4x/c4x.c | 2 |
3 files changed, 9 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index de22acd5813..fb42c0923eb 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2000-03-07 Michael Hayes <m.hayes@elec.canterbury.ac.nz> + + * config/c4x/c4x-protos.h (c4x_global_name): Constify char *. + (c4x_external_ref): Likewise. + * config/c4x/c4x.c (struct name_list): Likewise. + 1999-12-16 Ben Collins <bcollins@debian.org> * Makefile.in: Pass a new MULTILIB_EXCLUSIONS option as the sixth diff --git a/gcc/config/c4x/c4x-protos.h b/gcc/config/c4x/c4x-protos.h index 54340395cf6..9a5e70ac62b 100644 --- a/gcc/config/c4x/c4x-protos.h +++ b/gcc/config/c4x/c4x-protos.h @@ -38,9 +38,9 @@ extern int c4x_handle_pragma PARAMS ((int (* p_getc) (void), void (* p_ungetc) (int), char *)); -extern void c4x_global_label (char *); +extern void c4x_global_label (const char *); -extern void c4x_external_ref (char *); +extern void c4x_external_ref (const char *); extern void c4x_file_end (FILE *); diff --git a/gcc/config/c4x/c4x.c b/gcc/config/c4x/c4x.c index 106b334f39b..43a14cbe7ef 100644 --- a/gcc/config/c4x/c4x.c +++ b/gcc/config/c4x/c4x.c @@ -4399,7 +4399,7 @@ c4x_handle_pragma (p_getc, p_ungetc, pname) struct name_list { struct name_list *next; - char *name; + const char *name; }; static struct name_list *global_head; |

