mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-01-28 04:24:02 +08:00
+2003-10-06 Andrew Pinski <apinski@apple.com> + + * config/darwin.c...
+2003-10-06 Andrew Pinski <apinski@apple.com> + + * config/darwin.c (machopic_non_lazy_ptr_name): Fix off by one + error in calculating the length of the string. + (machopic_stub_name): Likewise. From-SVN: r72149
This commit is contained in:
parent
bd831d5cee
commit
75f604438c
@ -1,3 +1,9 @@
|
||||
2003-10-06 Andrew Pinski <apinski@apple.com>
|
||||
|
||||
* config/darwin.c (machopic_non_lazy_ptr_name): Fix off by one
|
||||
error in calculating the length of the string.
|
||||
(machopic_stub_name): Likewise.
|
||||
|
||||
2003-10-06 Roger Sayle <roger@eyesopen.com>
|
||||
|
||||
* optabs.c (prepare_float_lib_cmp): Attach a REG_EQUAL note
|
||||
|
@ -311,7 +311,7 @@ machopic_non_lazy_ptr_name (const char *name)
|
||||
{
|
||||
buffer[bufferlen] = '_';
|
||||
memcpy (buffer + bufferlen +1, name, namelen+1);
|
||||
bufferlen += namelen;
|
||||
bufferlen += namelen +1;
|
||||
}
|
||||
|
||||
memcpy (buffer + bufferlen, "$non_lazy_ptr", strlen("$non_lazy_ptr")+1);
|
||||
@ -386,7 +386,7 @@ machopic_stub_name (const char *name)
|
||||
{
|
||||
buffer[bufferlen] = '_';
|
||||
memcpy (buffer + bufferlen +1, name, namelen+1);
|
||||
bufferlen += namelen;
|
||||
bufferlen += namelen +1;
|
||||
}
|
||||
|
||||
if (needs_quotes)
|
||||
|
Loading…
Reference in New Issue
Block a user