* 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
+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
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));
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