Nicolas Morey
cb3490f2be
- mpip.unwinder.patch - Add-return-value-to-non-void-function.patch - pc_lookup-replace-PTR-with-void.patch - Add configure-fix-compilation-error-for-GCC-14.patch to fix compilation with GCC >= 14 - Add arch-add-generic-arch-using-GCC-builtins.patch to fix compilation on s390. OBS-URL: https://build.opensuse.org/package/show/science:HPC/mpiP?expand=0&rev=48
42 lines
1.2 KiB
Diff
42 lines
1.2 KiB
Diff
commit 21d336356fcf152e832a17dfe4204699faf39013
|
|
Author: Nicolas Morey <nmorey@suse.com>
|
|
Date: Thu Sep 5 14:58:58 2024 +0200
|
|
|
|
pc_lookup: replace PTR with void
|
|
|
|
Fixes compilation issues with newer glibc
|
|
|
|
Signed-off-by: Nicolas Morey <nmorey@suse.com>
|
|
|
|
diff --git pc_lookup.c pc_lookup.c
|
|
index 4c595645813a..4c2a1a30e693 100644
|
|
--- pc_lookup.c
|
|
+++ pc_lookup.c
|
|
@@ -115,7 +115,7 @@ static void
|
|
find_address_in_section (abfd, section, data)
|
|
bfd *abfd;
|
|
asection *section;
|
|
- PTR data;
|
|
+ void* data;
|
|
{
|
|
bfd_vma vma;
|
|
bfd_size_type size;
|
|
@@ -435,7 +435,7 @@ mpiP_find_src_loc (void *i_addr_hex, char **o_file_str, int *o_lineno,
|
|
|
|
found = FALSE;
|
|
|
|
- bfd_map_over_sections (abfd, find_address_in_section, (PTR) NULL);
|
|
+ bfd_map_over_sections (abfd, find_address_in_section, (void*) NULL);
|
|
|
|
#ifdef SO_LOOKUP
|
|
if (!found)
|
|
@@ -477,7 +477,7 @@ mpiP_find_src_loc (void *i_addr_hex, char **o_file_str, int *o_lineno,
|
|
mpiPi_msg_debug ("fso->bfd->sections is %p\n",
|
|
((bfd *) (fso->bfd))->sections);
|
|
bfd_map_over_sections (fso->bfd, find_address_in_section,
|
|
- (PTR) NULL);
|
|
+ (void*) NULL);
|
|
}
|
|
|
|
}
|