Commit c0cbc013 by Dale Johannesen Committed by Stan Shebs

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
parent 8dfa3e53
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.
2001-08-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 2001-08-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* tree.c (default_valid_attribute_p): Don't use PARAMS on a * tree.c (default_valid_attribute_p): Don't use PARAMS on a
......
...@@ -213,7 +213,7 @@ static int current_pic_label_num; ...@@ -213,7 +213,7 @@ static int current_pic_label_num;
char * char *
machopic_function_base_name () machopic_function_base_name ()
{ {
static char *name = NULL; static const char *name = NULL;
static const char *current_name; static const char *current_name;
current_name = IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (current_function_decl)); current_name = IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (current_function_decl));
...@@ -997,7 +997,8 @@ darwin_encode_section_info (decl) ...@@ -997,7 +997,8 @@ darwin_encode_section_info (decl)
char code = '\0'; char code = '\0';
int defined = 0; int defined = 0;
rtx sym_ref; rtx sym_ref;
char *orig_str, *new_str; const char *orig_str;
char *new_str;
size_t len, new_len; size_t len, new_len;
if ((TREE_CODE (decl) == FUNCTION_DECL if ((TREE_CODE (decl) == FUNCTION_DECL
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment