PR binutils/5146

* elf64-hppa.c: Declare alloca when __GNUC__ is defined.
	* som.c: Likewise.
This commit is contained in:
Dave Anglin
2007-12-29 01:36:40 +00:00
parent 548a34edb3
commit d68aa3e6e8
3 changed files with 8 additions and 0 deletions

View 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.

View File

@@ -48,6 +48,8 @@ extern void *alloca ();
# endif /* alloca */
# endif /* _AIX */
# endif /* HAVE_ALLOCA_H */
#else
extern void *alloca (size_t);
#endif /* __GNUC__ */

View File

@@ -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