diff options
author | Dave Anglin <dave.anglin@nrc.ca> | 2007-12-29 01:36:40 +0000 |
---|---|---|
committer | Dave Anglin <dave.anglin@nrc.ca> | 2007-12-29 01:36:40 +0000 |
commit | d68aa3e6e8a649be28be43c7a80740b281cc4da6 (patch) | |
tree | 0f240c7fe3331bb634871344497518f3f6296204 /bfd | |
parent | 548a34edb3ba956ca976901decb9bff54ae56612 (diff) | |
download | gdb-d68aa3e6e8a649be28be43c7a80740b281cc4da6.zip gdb-d68aa3e6e8a649be28be43c7a80740b281cc4da6.tar.gz gdb-d68aa3e6e8a649be28be43c7a80740b281cc4da6.tar.bz2 |
PR binutils/5146
* elf64-hppa.c: Declare alloca when __GNUC__ is defined.
* som.c: Likewise.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 4 | ||||
-rw-r--r-- | bfd/elf64-hppa.c | 2 | ||||
-rw-r--r-- | bfd/som.c | 2 |
3 files changed, 8 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index e302651..546dfaf 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 0eb1787..b203205 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__ */ @@ -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 |