From: Dave Anglin Date: Sat, 29 Dec 2007 01:36:40 +0000 (+0000) Subject: PR binutils/5146 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d68aa3e6e8a649be28be43c7a80740b281cc4da6;p=binutils-gdb.git PR binutils/5146 * elf64-hppa.c: Declare alloca when __GNUC__ is defined. * som.c: Likewise. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index e3026519495..546dfaf006a 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,5 +1,9 @@ 2007-12-28 John David Anglin + PR binutils/5146 + * elf64-hppa.c: Declare alloca when __GNUC__ is defined. + * som.c: Likewise. + * elf-hppa.h (elf_hppa_osec_to_segment): New function. (elf_hppa_record_segment_addrs): Use elf_hppa_osec_to_segment. Remove ATTRIBUTE_UNUSED from abfd argument. diff --git a/bfd/elf64-hppa.c b/bfd/elf64-hppa.c index 0eb1787a119..b2032050496 100644 --- a/bfd/elf64-hppa.c +++ b/bfd/elf64-hppa.c @@ -48,6 +48,8 @@ extern void *alloca (); # endif /* alloca */ # endif /* _AIX */ # endif /* HAVE_ALLOCA_H */ +#else +extern void *alloca (size_t); #endif /* __GNUC__ */ diff --git a/bfd/som.c b/bfd/som.c index a43271c5b5a..f9aed1628bd 100644 --- a/bfd/som.c +++ b/bfd/som.c @@ -59,6 +59,8 @@ extern void *alloca (); # endif /* alloca */ # endif /* _AIX */ # endif /* HAVE_ALLOCA_H */ +#else +extern void *alloca (size_t); #endif /* __GNUC__ */ static bfd_reloc_status_type hppa_som_reloc