]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
darwin.c (machopic_function_base_name): Add const qualifier to a string.
authorDale Johannesen <dalej@apple.com>
Wed, 29 Aug 2001 02:43:26 +0000 (02:43 +0000)
committerStan Shebs <shebs@gcc.gnu.org>
Wed, 29 Aug 2001 02:43:26 +0000 (02:43 +0000)
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

gcc/ChangeLog
gcc/config/darwin.c

index d7f8e79fc4b5b18a3519d095b1428a1b7e161385..85c9291d3e2df5c85e17ed45f528fe25ddbd9165 100644 (file)
@@ -1,3 +1,9 @@
+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>
 
        * tree.c (default_valid_attribute_p): Don't use PARAMS on a
index d00b7bda6005f72905aadc285dea51b8f759a86d..3f8cffdd2301e71b9d168c0edf1444147e9e2f6f 100644 (file)
@@ -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