aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/config/darwin.c5
2 files changed, 9 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index d7f8e79..85c9291 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
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