* [committed] Fix change for PR 5146
@ 2007-12-29 1:45 John David Anglin
0 siblings, 0 replies; only message in thread
From: John David Anglin @ 2007-12-29 1:45 UTC (permalink / raw)
To: binutils
The enclosed change fixes a problem introduced by the fix for PR 5146.
Tested on hppa64-hp-hpux11.00 and hppa2.0w-hp-hpux11.00 with gcc 4.2.2.
Committed to trunk. Sorry, I accidently deleted the PR number from
the log for the commit.
Dave
--
J. David Anglin dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6602)
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.
Index: elf64-hppa.c
===================================================================
RCS file: /cvs/src/src/bfd/elf64-hppa.c,v
retrieving revision 1.82
diff -u -3 -p -r1.82 elf64-hppa.c
--- elf64-hppa.c 16 Oct 2007 15:15:50 -0000 1.82
+++ elf64-hppa.c 28 Dec 2007 23:22:55 -0000
@@ -48,6 +48,8 @@ extern void *alloca ();
# endif /* alloca */
# endif /* _AIX */
# endif /* HAVE_ALLOCA_H */
+#else
+extern void *alloca (size_t);
#endif /* __GNUC__ */
Index: som.c
===================================================================
RCS file: /cvs/src/src/bfd/som.c,v
retrieving revision 1.69
diff -u -3 -p -r1.69 som.c
--- som.c 16 Oct 2007 15:15:50 -0000 1.69
+++ som.c 28 Dec 2007 23:22:56 -0000
@@ -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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-12-29 1:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-12-29 1:45 [committed] Fix change for PR 5146 John David Anglin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).