aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/darwin.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/config/darwin.c')
-rw-r--r--gcc/config/darwin.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/config/darwin.c b/gcc/config/darwin.c
index 587a327c870..616967e2268 100644
--- a/gcc/config/darwin.c
+++ b/gcc/config/darwin.c
@@ -365,7 +365,7 @@ machopic_indirection_hash (const void *slot)
static int
machopic_indirection_eq (const void *slot, const void *key)
{
- return strcmp (((const machopic_indirection *) slot)->ptr_name, key) == 0;
+ return strcmp (((const machopic_indirection *) slot)->ptr_name, (const char *) key) == 0;
}
/* Return the name of the non-lazy pointer (if STUB_P is false) or
@@ -419,7 +419,7 @@ machopic_indirection_name (rtx sym_ref, bool stub_p)
else
suffix = NON_LAZY_POINTER_SUFFIX;
- buffer = alloca (strlen ("&L")
+ buffer = (char *) alloca (strlen ("&L")
+ strlen (prefix)
+ namelen
+ strlen (suffix)
@@ -960,7 +960,7 @@ machopic_output_indirection (void **slot, void *data)
sym_name = IDENTIFIER_POINTER (id);
}
- sym = alloca (strlen (sym_name) + 2);
+ sym = (char *) alloca (strlen (sym_name) + 2);
if (sym_name[0] == '*' || sym_name[0] == '&')
strcpy (sym, sym_name + 1);
else if (sym_name[0] == '-' || sym_name[0] == '+')
@@ -968,7 +968,7 @@ machopic_output_indirection (void **slot, void *data)
else
sprintf (sym, "%s%s", user_label_prefix, sym_name);
- stub = alloca (strlen (ptr_name) + 2);
+ stub = (char *) alloca (strlen (ptr_name) + 2);
if (ptr_name[0] == '*' || ptr_name[0] == '&')
strcpy (stub, ptr_name + 1);
else