[committed] Fix change for PR 5146

John David Anglin dave@hiauly1.hia.nrc.ca
Sat Dec 29 01:45:00 GMT 2007


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



More information about the Binutils mailing list