PR binutils/5146
authorDave Anglin <dave.anglin@nrc.ca>
Sat, 29 Dec 2007 01:36:40 +0000 (01:36 +0000)
committerDave Anglin <dave.anglin@nrc.ca>
Sat, 29 Dec 2007 01:36:40 +0000 (01:36 +0000)
* elf64-hppa.c: Declare alloca when __GNUC__ is defined.
* som.c: Likewise.

bfd/ChangeLog
bfd/elf64-hppa.c
bfd/som.c

index e3026519495cc1ae003a87fc4c6c20f888f266b4..546dfaf006a60f447fce17d9310a1d12b34474ef 100644 (file)
@@ -1,5 +1,9 @@
 2007-12-28  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
 
+       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.
index 0eb1787a1199dfeee5771d9fd55c331f3eef4861..b2032050496a90d5f2582fa381e426bf42fb0657 100644 (file)
@@ -48,6 +48,8 @@ extern void *alloca ();
 #   endif /* alloca */
 #  endif /* _AIX */
 # endif /* HAVE_ALLOCA_H */
+#else
+extern void *alloca (size_t);
 #endif /* __GNUC__ */
 
 
index a43271c5b5ad91418e80f9e8ddadf9d9e09bdf42..f9aed1628bd31720aa3a559282935b23ea7320a0 100644 (file)
--- 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
This page took 0.029978 seconds and 4 git commands to generate.