From xemacs-m  Tue Jul 29 06:44:37 1997
Received: from bcarsde4.localhost (mailgate.nortel.ca [192.58.194.74])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id GAA29075
	for <xemacs-beta@xemacs.org>; Tue, 29 Jul 1997 06:44:34 -0500 (CDT)
Received: from bcarsde5.ott.bnr.ca (actually 47.80.6.26) by bcarsde4.localhost;
          Tue, 29 Jul 1997 07:34:53 -0400
Received: from nquah6f (actually nquah6f.ott.bnr.ca) by bcarsde5.ott.bnr.ca;
          Tue, 29 Jul 1997 07:43:33 -0400
Received: by nquah6f (1.38.193.4/16.2 BNR V4.2 P1) id AA24232;
          Tue, 29 Jul 1997 07:42:57 -0400
Date: Tue, 29 Jul 1997 07:42:57 -0400
From: "Barry Friedman" <friedman@nortel.ca>
Message-Id: <9707291142.AA24232@nquah6f>
Apparently-To: xemacs-beta@xemacs.org

From friedman Tue Jul 29 07:41:46 1997 remote from nquah6f
Subject: Re: XEmacs + HP + cc + alloca broken.
To: cognot@ensg.u-nancy.fr
Date: Tue, 29 Jul 1997 07:41:46 -0400 (EDT)
Reply-To: friedman@bnr.ca
In-Reply-To: <199707291001.FAA28687@xemacs.org> from "Richard Cognot" at Jul 29, 97 06:01:24 am
X-Mailer: ELM [version 2.4.1 PL23]
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-Length: 1763      
Sender: friedman

The problem is only with hpux 9.0x with the c89 compiler (cc) and
-lPW is only necessary in the lib-src directory.  Can a fix be
made which addresses this?


Richard Cognot wrote:
> 
> 
> >>>>> "Martin" == Martin Buchholz <mrb@Eng.Sun.COM> writes:
> 
>     Martin> Because of the difficulties fixing this without access to
>     Martin> a system with HP cc, I am leaving this to you guys.
>     Martin> Here's the plan I would use:
> 
>     Martin> - read the docs for cc, looking for alloca references.  -
>     Martin> build xemacs 20.2 on the same system, looking for how it
>     Martin> handles the configuration issues.  - Fix the code in 20.3
>     Martin> based on the above information.
> 
>     Martin> One additional idea that could be tried is to extract
>     Martin> alloca.o from libPW.a and simply put this file into the
>     Martin> src directory, and link with that.
> 
> No need for that: when including alloca.h, alloca is defined to become 
> __builtin_alloca (at least on 10.20). If I simply remove -lPW from the 
> link line it works perfectly.
> 
> Richard.
> 
> -- 
> |-------------------------------------------------------------|
> | Richard Cognot           | Proceed, with fingers crossed... |
> |                          |           /\^^/\                 |
> | <cognot@ensg.u-nancy.fr> |             `'                   |
> |-------------------------------------------------------------|
> | http://www.ensg.u-nancy.fr/~cognot                          |
> |-------------------------------------------------------------|
> 
> 


-- 
Barry Friedman                         
Emax Computer Systems Inc., 440 Laurier Ave. W., Ottawa, Ont. Canada K1R 7X6
ESN: 395-4270  NET: friedman@nortel.ca  Phone: (613) 782-2389  Fax: 782-2228  

