Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [RFA] fix bfd multi-arch compilation failure
@ 2009-03-17 23:59 Pierre Muller
  2009-03-18  0:08 ` H.J. Lu
  2009-03-18 11:46 ` Alan Modra
  0 siblings, 2 replies; 4+ messages in thread
From: Pierre Muller @ 2009-03-17 23:59 UTC (permalink / raw)
  To: gdb-patches, binutils

Hi,
I tried to do a compilation of
gdb with --enable-targets=all --enable-64-bits-bfd
on OpenSolaris 2008.11.

I found two problems in bfd directory,
related to uses of alloca without
including <alloca.h>

I added 
#include <alloca.h>
garded by #ifdef HAVE_ALLOCA_H
as I suppose that on some systems
alloca is builtin and thus does not require any header.


Is this OK to check in?


Pierre Muller
Pascal language support maintainer for GDB



ChangeLog entry:

2009-03-18  Pierre Muller  <muller@ics.u-strasbg.fr>

	* elf32-m68hc1x.c: Add alloca header.
	* xsym.c: Ditto.


Index: bfd/elf32-m68hc1x.c
===================================================================
RCS file: /cvs/src/src/bfd/elf32-m68hc1x.c,v
retrieving revision 1.33
diff -u -p -r1.33 elf32-m68hc1x.c
--- bfd/elf32-m68hc1x.c 12 Mar 2008 08:36:59 -0000      1.33
+++ bfd/elf32-m68hc1x.c 17 Mar 2009 23:18:58 -0000
@@ -20,6 +20,9 @@
    Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
    MA 02110-1301, USA.  */

+#ifdef HAVE_ALLOCA_H
+#include <alloca.h>
+#endif
 #include "sysdep.h"
 #include "bfd.h"
 #include "bfdlink.h"
Index: bfd/xsym.c
===================================================================
RCS file: /cvs/src/src/bfd/xsym.c,v
retrieving revision 1.23
diff -u -p -r1.23 xsym.c
--- bfd/xsym.c  30 Jul 2008 04:34:56 -0000      1.23
+++ bfd/xsym.c  17 Mar 2009 23:18:58 -0000
@@ -23,6 +23,9 @@
 #include "xsym.h"
 #include "bfd.h"
 #include "libbfd.h"
+#ifdef HAVE_ALLOCA_H
+#include <alloca.h>
+#endif

 #define bfd_sym_close_and_cleanup
_bfd_generic_close_and_clea
nup
 #define bfd_sym_bfd_free_cached_info
_bfd_generic_bfd_free_cache
d_info
cvs diff: Diffing bfd/doc
cvs diff: Diffing bfd/hosts
cvs diff: Diffing bfd/po


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-03-18 11:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-17 23:59 [RFA] fix bfd multi-arch compilation failure Pierre Muller
2009-03-18  0:08 ` H.J. Lu
2009-03-18 11:46 ` Alan Modra
2009-03-18 13:05   ` Alan Modra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox