* [binutils-gdb] Re: Renaming .debug to .zdebug and vice versa
@ 2022-12-05 4:47 Alan Modra
0 siblings, 0 replies; only message in thread
From: Alan Modra @ 2022-12-05 4:47 UTC (permalink / raw)
To: bfd-cvs
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=47afa56ee2bba22111df848ebeeec8c0a616ae73
commit 47afa56ee2bba22111df848ebeeec8c0a616ae73
Author: Alan Modra <amodra@gmail.com>
Date: Mon Dec 5 15:13:23 2022 +1030
Re: Renaming .debug to .zdebug and vice versa
* compress.c (bfd_debug_name_to_zdebug): Fix C++ compile error.
(bfd_zdebug_name_to_debug): Likewise.
* bfd-in2.h: Regenerate.
Diff:
---
bfd/bfd-in2.h | 4 ++--
bfd/compress.c | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h
index 48451175364..15f3c8c8f12 100644
--- a/bfd/bfd-in2.h
+++ b/bfd/bfd-in2.h
@@ -7967,7 +7967,7 @@ static inline char *
bfd_debug_name_to_zdebug (bfd *abfd, const char *name)
{
size_t len = strlen (name);
- char *new_name = bfd_alloc (abfd, len + 2);
+ char *new_name = (char *) bfd_alloc (abfd, len + 2);
if (new_name == NULL)
return NULL;
new_name[0] = '.';
@@ -7980,7 +7980,7 @@ static inline char *
bfd_zdebug_name_to_debug (bfd *abfd, const char *name)
{
size_t len = strlen (name);
- char *new_name = bfd_alloc (abfd, len);
+ char *new_name = (char *) bfd_alloc (abfd, len);
if (new_name == NULL)
return NULL;
new_name[0] = '.';
diff --git a/bfd/compress.c b/bfd/compress.c
index 95579847cf3..3d8c1d769f1 100644
--- a/bfd/compress.c
+++ b/bfd/compress.c
@@ -36,7 +36,7 @@ CODE_FRAGMENT
.bfd_debug_name_to_zdebug (bfd *abfd, const char *name)
.{
. size_t len = strlen (name);
-. char *new_name = bfd_alloc (abfd, len + 2);
+. char *new_name = (char *) bfd_alloc (abfd, len + 2);
. if (new_name == NULL)
. return NULL;
. new_name[0] = '.';
@@ -49,7 +49,7 @@ CODE_FRAGMENT
.bfd_zdebug_name_to_debug (bfd *abfd, const char *name)
.{
. size_t len = strlen (name);
-. char *new_name = bfd_alloc (abfd, len);
+. char *new_name = (char *) bfd_alloc (abfd, len);
. if (new_name == NULL)
. return NULL;
. new_name[0] = '.';
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-12-05 4:47 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-05 4:47 [binutils-gdb] Re: Renaming .debug to .zdebug and vice versa Alan Modra
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).