Article View: gnu.utils.bug
Article #247bison.simple should check __sparc as well as __sparc__
From: James Clark
Date: Mon, 27 Jul 1992 09:29
Date: Mon, 27 Jul 1992 09:29
28 lines
1308 bytes
1308 bytes
A parser generated by bison 1.18 won't compile with Lucid C++ on a sparc. The problem is that <alloca.h> does not get included because Lucid defines __STDC__ and defines __sparc rather than __sparc__. Here's a fix: *** bison.simple.~1~ Sun Mar 8 06:22:19 1992 --- bison.simple Mon Jul 27 10:11:23 1992 *************** *** 23,29 **** #ifdef __GNUC__ #define alloca __builtin_alloca #else /* not GNU C. */ ! #if (!defined (__STDC__) && defined (sparc)) || defined (__sparc__) #include <alloca.h> #else /* not sparc */ #if defined (MSDOS) && !defined (__TURBOC__) --- 23,29 ---- #ifdef __GNUC__ #define alloca __builtin_alloca #else /* not GNU C. */ ! #if (!defined (__STDC__) && defined (sparc)) || defined (__sparc__) || defined (__sparc) #include <alloca.h> #else /* not sparc */ #if defined (MSDOS) && !defined (__TURBOC__) James Clark jjc@jclark.com
Technical Details
Message-ID:
<9207270929.AA07558@jclark.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!jclark.COM!jjcShow Full Headers
Complete Article Headers
Newsgroups: gnu.utils.bug Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!jclark.COM!jjc From: jjc@jclark.COM (James Clark) Subject: bison.simple should check __sparc as well as __sparc__ Message-ID: <9207270929.AA07558@jclark.com> Sender: gnulists@ai.mit.edu Organization: GNUs Not Usenet Distribution: gnu Date: Mon, 27 Jul 1992 09:29:14 GMT Approved: bug-gnu-utils@prep.ai.mit.edu Lines: 29