From: Peter Schauer <Peter.Schauer@mytum.de>
To: brobecker@gnat.com (Joel Brobecker)
Cc: gdb-patches@sources.redhat.com, cagney@redhat.com, kevinb@redhat.com
Subject: Re: [RFC/AIX] xm-aix4.h - Remove alloca #pragma
Date: Sun, 08 Aug 2004 07:39:00 -0000 [thread overview]
Message-ID: <200408080739.i787dPN4002116@licht.localdomain> (raw)
In-Reply-To: <20040808045407.GF24160@gnat.com> from "Joel Brobecker" at Aug 07, 2004 09:54:07 PM
Could you please try to include malloc.h instead ?
> config/xm-aix4.h contains the following definition:
>
> | /* The IBM compiler requires this in order to properly compile alloca(). */
> | #pragma alloca
>
> I just checked with an IBM C compiler, and indeed, we need this pragma
> or the link will fail. Yuck! Can we solve this problem this way?
>
> . Add a check in configure to link a program using alloca.
> . If pass, we're done.
> . Try again with #pragma alloca
> . If pass, then define #USE_PRAGMA_ALLOCA, or HAVE_PRAGMA_ALLOCA
> or something like this
> . Some other ways to get alloca???
> . If fail, then abort configure, we need alloca.
>
> Then add something like this in defs:
>
> #ifdef USE_PRAGMA_ALLOCA
> #pragma alloca
> #endif
>
> --
> Joel
>
--
Peter Schauer Peter.Schauer@mytum.de
next prev parent reply other threads:[~2004-08-08 7:39 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-08 4:54 Joel Brobecker
2004-08-08 7:39 ` Peter Schauer [this message]
2004-08-08 12:23 ` Mark Kettenis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200408080739.i787dPN4002116@licht.localdomain \
--to=peter.schauer@mytum.de \
--cc=brobecker@gnat.com \
--cc=cagney@redhat.com \
--cc=gdb-patches@sources.redhat.com \
--cc=kevinb@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox