summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Anglin <dave.anglin@nrc.ca>2007-12-29 01:36:40 +0000
committerDave Anglin <dave.anglin@nrc.ca>2007-12-29 01:36:40 +0000
commit14627cd87af543f9991508c311d15115fe655073 (patch)
tree588e1b824dcf29d49e4647f62bf78acc51eb180c
parent02f9c2fbf3637e1a1bc61569ae58421b3c02986a (diff)
downloadbinutils-redhat-14627cd87af543f9991508c311d15115fe655073.tar.gz
PR binutils/5146
* elf64-hppa.c: Declare alloca when __GNUC__ is defined. * som.c: Likewise.
-rw-r--r--bfd/ChangeLog4
-rw-r--r--bfd/elf64-hppa.c2
-rw-r--r--bfd/som.c2
3 files changed, 8 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index e302651949..546dfaf006 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -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.
diff --git a/bfd/elf64-hppa.c b/bfd/elf64-hppa.c
index 0eb1787a11..b203205049 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 a43271c5b5..f9aed1628b 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