From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12937 invoked by alias); 8 Aug 2004 04:54:08 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 12721 invoked from network); 8 Aug 2004 04:54:07 -0000 Received: from unknown (HELO takamaka.act-europe.fr) (142.179.108.108) by sourceware.org with SMTP; 8 Aug 2004 04:54:07 -0000 Received: by takamaka.act-europe.fr (Postfix, from userid 507) id 42D4847D92; Sat, 7 Aug 2004 21:54:07 -0700 (PDT) Date: Sun, 08 Aug 2004 04:54:00 -0000 From: Joel Brobecker To: gdb-patches@sources.redhat.com Cc: Andrew Cagney , Peter Schauer , Kevin Buettner Subject: [RFC/AIX] xm-aix4.h - Remove alloca #pragma Message-ID: <20040808045407.GF24160@gnat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i X-SW-Source: 2004-08/txt/msg00236.txt.bz2 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