From 47afa56ee2bba22111df848ebeeec8c0a616ae73 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Mon, 5 Dec 2022 15:13:23 +1030 Subject: [PATCH] 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. --- 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] = '.'; -- 2.30.2