+2004-07-07 Mike Stump <mrs@apple.com>
+
+ * darwin.h (ASM_OUTPUT_LABELREF): Fix -fno-leading-underscore.
+ * darwin.c (machopic_non_lazy_ptr_name, machopic_stub_name)
+ (machopic_finish): Likewise.
+
2004-07-07 Richard Henderson <rth@redhat.com>
* tree-ssa-dom.c (simplify_switch_and_lookup_avail_expr): Look
}
else
{
- buffer[bufferlen] = '_';
- memcpy (buffer + bufferlen +1, name, namelen+1);
- bufferlen += namelen +1;
+ strcpy (buffer + bufferlen, user_label_prefix);
+ bufferlen += strlen (user_label_prefix);
+ memcpy (buffer + bufferlen, name, namelen+1);
+ bufferlen += namelen;
}
memcpy (buffer + bufferlen, "$non_lazy_ptr", strlen("$non_lazy_ptr")+1);
}
else
{
- buffer[bufferlen] = '_';
- memcpy (buffer + bufferlen +1, name, namelen+1);
- bufferlen += namelen +1;
+ strcpy (buffer + bufferlen, user_label_prefix);
+ bufferlen += strlen (user_label_prefix);
+ memcpy (buffer + bufferlen, name, namelen+1);
+ bufferlen += namelen;
}
if (needs_quotes)
else if (sym_name[0] == '-' || sym_name[0] == '+')
strcpy (sym, sym_name);
else
- sym[0] = '_', strcpy (sym + 1, sym_name);
+ sprintf (sym, "%s%s", user_label_prefix, sym_name);
stub = alloca (strlen (stub_name) + 2);
if (stub_name[0] == '*' || stub_name[0] == '&')
strcpy (stub, stub_name + 1);
else
- stub[0] = '_', strcpy (stub + 1, stub_name);
+ sprintf (stub, "%s%s", user_label_prefix, stub_name);
machopic_output_stub (asm_out_file, sym, stub);
}
else if (!strncmp (xname, ".objc_class_name_", 17)) \
fprintf (FILE, "%s", xname); \
else \
- fprintf (FILE, "_%s", xname); \
+ asm_fprintf (FILE, "%U%s", xname); \
} while (0)
/* Output before executable code. */