OSDN Git Service

2001-08-28 Dale Johannesen <dalej@apple.com>
authorshebs <shebs@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 29 Aug 2001 02:43:26 +0000 (02:43 +0000)
committershebs <shebs@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 29 Aug 2001 02:43:26 +0000 (02:43 +0000)
        * config/darwin.c (machopic_function_base_name): Add const
        qualifier to a string.
        (darwin_encode_section_info): Ditto.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@45253 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/darwin.c

index d7f8e79..85c9291 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 d00b7bd..3f8cffd 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