Article View: gnu.utils.bug
Article #1217oleo 1.2 xrdb.c doesn't configure alloca properly
From: Paul Eggert
Date: Fri, 01 Jan 1993 17:37
Date: Fri, 01 Jan 1993 17:37
34 lines
1402 bytes
1402 bytes
oleo 1.2 (gcc 2.3.3 -ansi -pedantic, SunOS 4.1.2) doesn't build properly because xrdb.c uses alloca without defining it. The problem is that xrdb.c doesn't configure alloca properly. Here's a patch. *** xrdb.c 1992/12/31 15:54:06 1.2.1.1 --- xrdb.c 1992/12/31 16:04:32 1.2.1.2 *************** *** 19,24 **** --- 19,43 ---- /* Coopted for oleo -t 12/92 */ /* Written by jla, 4/90 */ + #ifndef alloca + #ifdef __GNUC__ + #define alloca __builtin_alloca + #else /* __GNUC__ not defined. */ + #if HAVE_ALLOCA_H + #include <alloca.h> + #else /* not HAVE_ALLOCA_H */ + #if defined (MSDOS) && !defined (__TURBOC__) + #include <malloc.h> + #else /* not MSDOS, or __TURBOC__ */ + #if defined(_AIX) + #include <malloc.h> + #pragma alloca + #endif /* not _AIX */ + #endif /* not MSDOS, or __TURBOC__ */ + #endif /* not HAVE_ALLOCA_H */ + #endif /* __GNUC__ not defined. */ + #endif /* alloca not defined. */ + #ifdef emacs #include "config.h" #endif
Technical Details
Message-ID:
<9301011737.AA03402@farside.twinsun.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!twinsun.COM!eggertShow Full Headers
Complete Article Headers
Newsgroups: gnu.utils.bug Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!twinsun.COM!eggert From: eggert@twinsun.COM (Paul Eggert) Subject: oleo 1.2 xrdb.c doesn't configure alloca properly Message-ID: <9301011737.AA03402@farside.twinsun.com> Sender: gnulists@ai.mit.edu Organization: GNUs Not Usenet Distribution: gnu Date: Fri, 1 Jan 1993 17:37:38 GMT Approved: bug-gnu-utils@prep.ai.mit.edu Lines: 35