This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFC/AIX] xm-aix4.h - Remove alloca #pragma
- From: Mark Kettenis <kettenis at chello dot nl>
- To: Peter dot Schauer at mytum dot de
- Cc: brobecker at gnat dot com, gdb-patches at sources dot redhat dot com, cagney at redhat dot com, kevinb at redhat dot com
- Date: Sun, 8 Aug 2004 14:23:24 +0200 (CEST)
- Subject: Re: [RFC/AIX] xm-aix4.h - Remove alloca #pragma
- References: <200408080739.i787dPN4002116@licht.localdomain>
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