diff options
author | Dale Johannesen <dalej@apple.com> | 2001-08-29 02:43:26 +0000 |
---|---|---|
committer | Stan Shebs <shebs@gcc.gnu.org> | 2001-08-29 02:43:26 +0000 |
commit | c0cbc013a23961427ae646e516f8df1121899b3f (patch) | |
tree | abd929540e07ab06aec9b51c297ee1d4de3c579d /gcc/config | |
parent | 8dfa3e5380408574e438590c34fa29cd598b713b (diff) | |
download | gcc-c0cbc013a23961427ae646e516f8df1121899b3f.zip gcc-c0cbc013a23961427ae646e516f8df1121899b3f.tar.gz gcc-c0cbc013a23961427ae646e516f8df1121899b3f.tar.bz2 |
darwin.c (machopic_function_base_name): Add const qualifier to a string.
2001-08-28 Dale Johannesen <dalej@apple.com>
* config/darwin.c (machopic_function_base_name): Add const
qualifier to a string.
(darwin_encode_section_info): Ditto.
From-SVN: r45253
Diffstat (limited to 'gcc/config')
-rw-r--r-- | gcc/config/darwin.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/config/darwin.c b/gcc/config/darwin.c index d00b7bd..3f8cffd 100644 --- a/gcc/config/darwin.c +++ b/gcc/config/darwin.c @@ -213,7 +213,7 @@ static int current_pic_label_num; char * machopic_function_base_name () { - static char *name = NULL; + static const char *name = NULL; static const char *current_name; current_name = IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (current_function_decl)); @@ -997,7 +997,8 @@ darwin_encode_section_info (decl) char code = '\0'; int defined = 0; rtx sym_ref; - char *orig_str, *new_str; + const char *orig_str; + char *new_str; size_t len, new_len; if ((TREE_CODE (decl) == FUNCTION_DECL |