This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC/AIX] xm-aix4.h - Remove alloca #pragma


   From: Peter Schauer <Peter.Schauer@mytum.de>
   Date: Sun, 8 Aug 2004 09:39:25 +0200 (CEST)

   Could you please try to include malloc.h instead ?

Including malloc.h is a bad idea.  Many modern systems have a #warning
in that file, which would kill -Werror compilation.

Anyway.  The whole alloca mess is pretty well sorted out in autoconf.
There is an AC_FUNC_ALLOCA macro and we're calling it in our
configure.in.  The necessary glue, include the #pragma alloca is in
defs.h (although it is arranges a little differently than the autoconf
manual suggests).  So I really think we can just scrap it.

Mark


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]